diff --git a/AlgoritmoDiPrevisioneDiagram.jpg b/AlgoritmoDiPrevisioneDiagram.jpg new file mode 100644 index 0000000..5290340 Binary files /dev/null and b/AlgoritmoDiPrevisioneDiagram.jpg differ diff --git a/CriteriDiSelezioneDiagram.jpg b/CriteriDiSelezioneDiagram.jpg new file mode 100644 index 0000000..15f664c Binary files /dev/null and b/CriteriDiSelezioneDiagram.jpg differ diff --git a/PrimaProvaProgetto/CriteriDiSelezioneDiagram.cd b/PrimaProvaProgetto/CriteriDiSelezioneDiagram.cd new file mode 100644 index 0000000..4c1ece9 --- /dev/null +++ b/PrimaProvaProgetto/CriteriDiSelezioneDiagram.cd @@ -0,0 +1,58 @@ + + + + + + AAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Model\CriteriDiSelezione.cs + + + + + + + AAAAAAgAAAAAAAAAAAAAAAIAAAAAAIAAAAAAAAAAAAA= + Model\CriteriDiSelezione.cs + + + + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Model\CriteriDiSelezione.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Model\CriteriDiSelezione.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Model\CriteriDiSelezione.cs + + + + + + AAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAA= + Model\CriterioDiSelezioneBuilder.cs + + + + + + AAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Model\ICriterioDiSelezione.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/LocaleRistorazioneDiagram.cd b/PrimaProvaProgetto/LocaleRistorazioneDiagram.cd new file mode 100644 index 0000000..88f484b --- /dev/null +++ b/PrimaProvaProgetto/LocaleRistorazioneDiagram.cd @@ -0,0 +1,94 @@ + + + + + + ICAEAAEAAABAAAAAAAAAAEAABAIIAAAACAAQACAACAA= + Model\Ristorante.cs + + + + + + + + + + + + AAAAIAAAAAAAAAAEgAAAAAAAAAAAAIAAAAAAAAEAAAA= + Model\Allergene.cs + + + + + + AAAAIAAAAAAQAAAEAAAAAAAAAAAAAAEAAACAgAEAAAA= + Model\Prenotazione.cs + + + + + + ABEAAAAAIQAAAgAkBAAAAAAABAAAAAAAIAAQIAQACgA= + Model\Pietanza.cs + + + + + + + + + + + + + AAACAQAEAAAAAAB0ABAACAAAARAAAAAAAAAAAgABAAA= + Model\Tavolo.cs + + + + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAEAAAAAAAIKA= + Model\CalcolaTempo.cs + + + + + + AAFAAEAAACAAAgAACACBAAACAAAAQgAAEBEQAAAAAAA= + Presentation\PietanzaControl.cs + + + + + + + + + ABABAAAACAAAAAAEgAAAAAAAAAAAAIAAAAAgAAAAAAA= + Model\Money.cs + + + + + + AAAAAAAgAAAAQAgAAACAAAAAAAAAAAAAEAABAAAAAAA= + Model\Categoria.cs + + + + + + AAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAA= + Model\StatoTavolo.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Model/AlgoritmoPrevisioneSemplice.cs b/PrimaProvaProgetto/Model/AlgoritmoPrevisioneSemplice.cs index 38a641b..68d354e 100644 --- a/PrimaProvaProgetto/Model/AlgoritmoPrevisioneSemplice.cs +++ b/PrimaProvaProgetto/Model/AlgoritmoPrevisioneSemplice.cs @@ -13,10 +13,16 @@ public class AlgoritmoPrevisioneSemplice : IAlgoritmoPrevisione */ public TimeSpan OttieniPrevisione(List vecchiePermanenze, int numeroPersone) { + if (numeroPersone >= 7) + return new TimeSpan(Convert.ToInt64( + vecchiePermanenze + .Where(tp => tp.NumeroCoperti >= numeroPersone) + .Average(tp => tp.Tempo.Ticks))); return new TimeSpan(Convert.ToInt64( vecchiePermanenze - .Where(tp => tp.NumeroCoperti == numeroPersone) + .Where(tp => tp.NumeroCoperti >= numeroPersone && tp.NumeroCoperti <= (numeroPersone + 1)) .Average(tp => tp.Tempo.Ticks))); + } } diff --git a/PrimaProvaProgetto/Model/Allergene.cs b/PrimaProvaProgetto/Model/Allergene.cs index 3cf0ae3..b9bb7a7 100644 --- a/PrimaProvaProgetto/Model/Allergene.cs +++ b/PrimaProvaProgetto/Model/Allergene.cs @@ -10,6 +10,11 @@ public class Allergene { private string _nome; + public Allergene(String nome) + { + Nome = nome; + } + public string Nome { get @@ -22,12 +27,7 @@ public string Nome _nome = value ?? string.Empty; } } - - public Allergene(String nome) - { - Nome = nome; - } - + public Allergene() : this(null) { } public override string ToString() diff --git a/PrimaProvaProgetto/Model/CalcolaTempo.cs b/PrimaProvaProgetto/Model/CalcolaTempo.cs new file mode 100644 index 0000000..90662aa --- /dev/null +++ b/PrimaProvaProgetto/Model/CalcolaTempo.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Model +{ + public class CalcolaTempo + { + private int _numeroPosti; + private DateTime _oraInizioPasto; + + public CalcolaTempo(int numeroPosti) + { + _numeroPosti = numeroPosti; + } + + public TimeSpan TempoRimanente + { + get + { + if (_numeroPosti == 0) + return TimeSpan.Zero; + TimeSpan tempoPrevisto = Previsione.GetInstance().OttieniPrevisione(_numeroPosti); + TimeSpan tempoRimanente = (_oraInizioPasto + tempoPrevisto) - DateTime.Now; + return tempoRimanente > TimeSpan.Zero ? tempoRimanente : TimeSpan.Zero; + } + } + + public void OccupaTavolo() + { + _oraInizioPasto = DateTime.Now; + } + + public void LiberaTavolo() + { + Previsione.GetInstance().InserisciTempoPermanenza(new TempoPermanenza(_numeroPosti, _oraInizioPasto, DateTime.Now)); + //porcata: così quando libero il tavolo alle richieste successive otterrò 0 come tempo + _numeroPosti = 0; + } + } +} diff --git a/PrimaProvaProgetto/Model/CriteriDiSelezione.cs b/PrimaProvaProgetto/Model/CriteriDiSelezione.cs index 33a079a..465894c 100644 --- a/PrimaProvaProgetto/Model/CriteriDiSelezione.cs +++ b/PrimaProvaProgetto/Model/CriteriDiSelezione.cs @@ -29,7 +29,7 @@ public class CriterioDiSelezioneAll : ICriterioDiSelezione { public List GetPietanze() { - return Ristorante.GetInstance().Menu; + return LocaleRistorazione.GetInstance().Menu; } } diff --git a/PrimaProvaProgetto/Model/CriterioDiSelezioneBuilder.cs b/PrimaProvaProgetto/Model/CriterioDiSelezioneBuilder.cs new file mode 100644 index 0000000..a2cb28a --- /dev/null +++ b/PrimaProvaProgetto/Model/CriterioDiSelezioneBuilder.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Model +{ + static class CriterioDiSelezioneBuilder + { + public static ICriterioDiSelezione GetCriterio(List categorie, List allergeni) + { + Categoria categoriaMaschera = 0; + categorie.ForEach(cat => categoriaMaschera = categoriaMaschera | cat); + ICriterioDiSelezione res = new CriterioDiSelezioneByDisp(); + res = new CriterioDiSelezioneByCategoria(categoriaMaschera, res); + allergeni.ForEach(all => res = new CriterioDiSelezioneByNotContainsAllergene(all, res)); + return res; + } + } +} diff --git a/PrimaProvaProgetto/Model/EditabileAttrinute.cs b/PrimaProvaProgetto/Model/EditabileAttribute.cs similarity index 100% rename from PrimaProvaProgetto/Model/EditabileAttrinute.cs rename to PrimaProvaProgetto/Model/EditabileAttribute.cs diff --git a/PrimaProvaProgetto/Model/Ristorante.cs b/PrimaProvaProgetto/Model/LocaleRistorazione.cs similarity index 58% rename from PrimaProvaProgetto/Model/Ristorante.cs rename to PrimaProvaProgetto/Model/LocaleRistorazione.cs index 6a8e9a5..0497f7c 100644 --- a/PrimaProvaProgetto/Model/Ristorante.cs +++ b/PrimaProvaProgetto/Model/LocaleRistorazione.cs @@ -1,20 +1,23 @@ -using System; +using PrimaProvaProgetto.Persistance; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows.Forms; namespace PrimaProvaProgetto.Model { - public class Ristorante + public class LocaleRistorazione { + private List _menu; private ObservableCollection _listaPrenotazioni; private List _allergeni; - - private static Ristorante _instance = null; + private List _tavoli; + private static LocaleRistorazione _instance = null; public List Menu { @@ -29,6 +32,19 @@ public List Menu } } + public List Tavoli + { + get + { + return _tavoli; + } + + set + { + _tavoli = value; + } + } + public ObservableCollection ListaPrenotazioni { get @@ -57,20 +73,38 @@ public List Allergeni public event NotifyCollectionChangedEventHandler ListaPrenotazioniChanged; - private Ristorante() + private LocaleRistorazione() { - Menu = new List(); + Menu = MenuPersisterFactory.GetMenuLoader("SimpleMenuLoader").Load(); ListaPrenotazioni = new ObservableCollection(); - Allergeni = LoadAllergeni(); - //possiamo mettere il caricamento da file + + /* + * Per ora al Ristorante ho lasciato una lista di soli tavoli, non so se possa servire un altro sistema + * magari la Form dei camerieri avrà anch'essa bisogno delle coordinate dei tavoli, + * ma mettere tali informazioni qui forse mescola dati con grafica + */ + Tavoli = LayoutPersisterFactory.GetLayoutLoader("SimpleJsonLayoutLoader").Load(TipoLayout.Vuoto).Values.ToList(); + Allergeni = LoadAllergeni(); + ListaPrenotazioni.CollectionChanged += ListaPrenotazioniChanged; - } + Application.ApplicationExit += Application_ApplicationExit; + } + + private void Application_ApplicationExit(object sender, EventArgs e) + { + /* + * Potrebbe essere meglio spostare anche questo salvataggio? + * Forse farlo al momento dell'avvio del totem clienti riduce il rischio di perderlo + * (magari va tutto in crash prima della chiusura dell'applicazione) + */ + MenuPersisterFactory.GetMenuSaver("SimpleMenuSaver").Save(Menu); + } - public static Ristorante GetInstance() + public static LocaleRistorazione GetInstance() { if (_instance == null) - _instance = new Ristorante(); + _instance = new LocaleRistorazione(); return _instance; } diff --git a/PrimaProvaProgetto/Model/Money.cs b/PrimaProvaProgetto/Model/Money.cs index fd4b5aa..090c3dc 100644 --- a/PrimaProvaProgetto/Model/Money.cs +++ b/PrimaProvaProgetto/Model/Money.cs @@ -46,7 +46,7 @@ public override bool Equals(object obj) return false; } var other = (Money)obj; - return Equals(other); + return Value == other.Value; } public override int GetHashCode() diff --git a/PrimaProvaProgetto/Model/Pietanza.cs b/PrimaProvaProgetto/Model/Pietanza.cs index 9deca88..c0e217a 100644 --- a/PrimaProvaProgetto/Model/Pietanza.cs +++ b/PrimaProvaProgetto/Model/Pietanza.cs @@ -21,8 +21,6 @@ public class Pietanza public Pietanza(string titolo, Money prezzo, Categoria categoria, List allergeni, string descrizione = "", bool disponibile = true) { - if (titolo == null) - throw new ArgumentNullException("titolo"); Titolo = titolo; Descrizione = descrizione; Prezzo = prezzo; @@ -46,6 +44,8 @@ public string Titolo set { + if (value == null) + throw new ArgumentNullException("titolo"); _titolo = value; OnChanged(); } diff --git a/PrimaProvaProgetto/Model/Prenotazione.cs b/PrimaProvaProgetto/Model/Prenotazione.cs index d5efc23..1106523 100644 --- a/PrimaProvaProgetto/Model/Prenotazione.cs +++ b/PrimaProvaProgetto/Model/Prenotazione.cs @@ -1,4 +1,5 @@ -using System; +using PrimaProvaProgetto.Presentation; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -15,12 +16,6 @@ public class Prenotazione public Prenotazione(string nome, string numeroTelefono, int numeroCoperti) { - if (string.IsNullOrEmpty(nome)) - throw new ArgumentNullException("nome is null or empty"); - if (string.IsNullOrEmpty(numeroTelefono)) - throw new ArgumentNullException("numeroTelefono is null or empty"); - if (numeroCoperti <= 0) - throw new ArgumentOutOfRangeException("numeroCoperti <= 0"); Nome = nome; NumeroTelefono = numeroTelefono; NumeroCoperti = numeroCoperti; @@ -36,6 +31,8 @@ public string Nome set { + if (string.IsNullOrEmpty(value)) + throw new ArgumentNullException("nome is null or empty"); _nome = value; } } @@ -50,11 +47,13 @@ public string NumeroTelefono set { + if (string.IsNullOrEmpty(value)) + throw new ArgumentNullException("numeroTelefono is null or empty"); _numeroTelefono = value; } } - [Editabile(Modifier = typeof(NumericUpDown))] + [Editabile(Modifier = typeof(IntModifier))] public int NumeroCoperti { get @@ -64,6 +63,8 @@ public int NumeroCoperti set { + if (value <= 0) + throw new ArgumentOutOfRangeException("numeroCoperti <= 0"); _numeroCoperti = value; } } diff --git a/PrimaProvaProgetto/Model/Previsione.cs b/PrimaProvaProgetto/Model/Previsione.cs index e26ecbc..8c57861 100644 --- a/PrimaProvaProgetto/Model/Previsione.cs +++ b/PrimaProvaProgetto/Model/Previsione.cs @@ -16,10 +16,50 @@ public class Previsione private Previsione() { _tempiPermanenza = new List(); + + //popoliamo già la lista di tempi di permanenza in modo da poter avere già qualche previsione + _tempiPermanenza = LoadTempiPermanenza(); + + //metto il default _algoritmo = AlgoritmoPrevisioneFactory.GetAlgoritmoPrevisione("AlgoritmoPrevisioneSemplice"); } + private List LoadTempiPermanenza() + { + List res = new List(); + + res.Add(new TempoPermanenza(2, + new DateTime(2017, 7, 1, 19, 0, 0), + new DateTime(2017, 7, 1, 19, 45, 0))); + + res.Add(new TempoPermanenza(3, + new DateTime(2017, 7, 1, 19, 10, 0), + new DateTime(2017, 7, 1, 20, 0, 0))); + + res.Add(new TempoPermanenza(5, + new DateTime(2017, 7, 1, 19, 10, 0), + new DateTime(2017, 7, 1, 20, 30, 0))); + + res.Add(new TempoPermanenza(1, + new DateTime(2017, 7, 1, 19, 15, 0), + new DateTime(2017, 7, 1, 19, 30, 0))); + + res.Add(new TempoPermanenza(7, + new DateTime(2017, 7, 1, 20, 30, 0), + new DateTime(2017, 7, 1, 22, 45, 0))); + + res.Add(new TempoPermanenza(6, + new DateTime(2017, 7, 1, 21, 0, 0), + new DateTime(2017, 7, 1, 22, 35, 0))); + + res.Add(new TempoPermanenza(8, + new DateTime(2017, 7, 1, 21, 0, 0), + new DateTime(2017, 7, 1, 23, 0, 0))); + + return res; + } + public static Previsione GetInstance() { if (_instance == null) diff --git a/PrimaProvaProgetto/Model/Tavolo.cs b/PrimaProvaProgetto/Model/Tavolo.cs new file mode 100644 index 0000000..689ba8b --- /dev/null +++ b/PrimaProvaProgetto/Model/Tavolo.cs @@ -0,0 +1,81 @@ +using Newtonsoft.Json; +using PrimaProvaProgetto.Presentation; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Model +{ + public class Tavolo + { + public event EventHandler StatoChanged; + private CalcolaTempo _calcolaTempo; + private int _coperti; + private int _postiMax; + private StatoTavolo _stato; + private static int _numeroTavolo; + + [JsonConstructor] + public Tavolo(int postiMax, StatoTavolo stato) : this(0, postiMax, stato) { } + + // Forse si potrebbe anche togliere questo costruttore, visto che i coperti andranno settati + // nel momento in cui i clienti si accomodano + public Tavolo(int coperti, int postiMax, StatoTavolo stato) + { + Coperti = coperti; + PostiMax = postiMax; + Stato = stato; + Numero = 0; + } + + protected virtual void onStatoChanged() + { + StatoChanged?.Invoke(this, EventArgs.Empty); + } + + [Editabile(Modifier = typeof(IntModifier))] + public int Coperti + { + get { return _coperti; } + set { if (Stato.Equals(StatoTavolo.Occupato) && value <= 0) throw new ArgumentException("Invalid seats number"); _coperti = value; _calcolaTempo = new CalcolaTempo(value); } + } + + [Editabile(Modifier = typeof(IntModifier))] + public int PostiMax + { + get { return _postiMax; } + set { if (value <= 0) throw new ArgumentException("Invalid max seats number"); _postiMax = value; } + } + + public CalcolaTempo CalcolaTempo + { + get { return _calcolaTempo; } + set { _calcolaTempo = value;} + } + + public StatoTavolo Stato + { + get { return _stato; } + set { _stato = value; + onStatoChanged(); + } + } + + public int Numero + { + get { return _numeroTavolo; } + set { _numeroTavolo = value; } + } + + public override string ToString() + { + return "Tavolo N° "+Numero+ " - Posti: "+PostiMax+" - Stato: " + Stato; + } + + + + } +} + diff --git a/PrimaProvaProgetto/Model/TempoPermanenza.cs b/PrimaProvaProgetto/Model/TempoPermanenza.cs index 4f89ca0..8f39649 100644 --- a/PrimaProvaProgetto/Model/TempoPermanenza.cs +++ b/PrimaProvaProgetto/Model/TempoPermanenza.cs @@ -14,14 +14,6 @@ public class TempoPermanenza public TempoPermanenza(int numeroCoperti, DateTime oraInizio, DateTime oraFine) { - if (numeroCoperti <= 0) - throw new ArgumentException("numeroCopert <= 0"); - if (oraInizio == null) - throw new ArgumentNullException("oraInizio is null"); - if (oraFine == null) - throw new ArgumentNullException("oraFine is null"); - if (oraFine <= oraInizio) - throw new ArgumentException("oraFine <= oraInizio"); NumeroCoperti = numeroCoperti; OraInizio = oraInizio; OraFine = oraFine; @@ -36,6 +28,8 @@ public int NumeroCoperti set { + if (value <= 0) + throw new ArgumentException("numeroCopert <= 0"); _numeroCoperti = value; } } @@ -49,6 +43,10 @@ public DateTime OraInizio set { + if (value == null) + throw new ArgumentNullException("oraInizio is null"); + if (OraFine != default(DateTime) && OraFine <= value) + throw new ArgumentException("oraFine <= oraInizio"); _oraInizio = value; } } @@ -62,6 +60,10 @@ public DateTime OraFine set { + if (value == null) + throw new ArgumentNullException("oraFine is null"); + if (OraInizio != default(DateTime) && value <= OraInizio) + throw new ArgumentException("oraFine <= oraInizio"); _oraFine = value; } } diff --git a/PrimaProvaProgetto/ModifierControlDiagram.cd b/PrimaProvaProgetto/ModifierControlDiagram.cd new file mode 100644 index 0000000..c23d7d1 --- /dev/null +++ b/PrimaProvaProgetto/ModifierControlDiagram.cd @@ -0,0 +1,58 @@ + + + + + + AAAAAAAAACAAAAAAAACAAAACAAAAAAAQAAAgAAAACCA= + Presentation\AllergeniModifier.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAA= + Presentation\StringModifier.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAA= + Presentation\MoneyModifier.cs + + + + + + + AAAAAAAAACAAAACAAACAAAACAAAAAAAQAAAAAAAAACA= + Presentation\CategoriaModifier.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAA= + Presentation\IntModifier.cs + + + + + + + AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAA= + Model\EditabileAttribute.cs + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAA= + Presentation\IModifierControl.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Persistance/ILayoutPersister.cs b/PrimaProvaProgetto/Persistance/ILayoutPersister.cs new file mode 100644 index 0000000..bd02605 --- /dev/null +++ b/PrimaProvaProgetto/Persistance/ILayoutPersister.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Model +{ + interface ILayoutSaver + { + void Save(Dictionary layout); + } + + interface ILayoutLoader + { + Dictionary Load(TipoLayout tipo); + } + + public enum TipoLayout + { + Default = 1, + Ultimo = 2, + Vuoto = 3 + } + +} diff --git a/PrimaProvaProgetto/Persistance/IMenuPersister.cs b/PrimaProvaProgetto/Persistance/IMenuPersister.cs new file mode 100644 index 0000000..de484cb --- /dev/null +++ b/PrimaProvaProgetto/Persistance/IMenuPersister.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Model +{ + interface IMenuSaver + { + void Save(List menu); + } + + interface IMenuLoader + { + List Load(); + } +} + diff --git a/PrimaProvaProgetto/Persistance/LayoutPersisterFactory.cs b/PrimaProvaProgetto/Persistance/LayoutPersisterFactory.cs new file mode 100644 index 0000000..594889f --- /dev/null +++ b/PrimaProvaProgetto/Persistance/LayoutPersisterFactory.cs @@ -0,0 +1,52 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Persistance +{ + class LayoutPersisterFactory + { + private static readonly Dictionary _saver; + private static readonly Dictionary _loader; + + static LayoutPersisterFactory() + { + /* popolamento dei dizionari: + * come nella factory degli algoritmi di previsione + */ + _saver = new Dictionary(); + Assembly.GetExecutingAssembly().GetTypes() + .Where(type => (type.GetInterface("ILayoutSaver") != null)) + .ToList() + .ForEach(type => _saver.Add( + type.Name, + (ILayoutSaver)type.GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes))); + + _loader = new Dictionary(); + Assembly.GetExecutingAssembly().GetTypes() + .Where(type => (type.GetInterface("ILayoutLoader") != null)) + .ToList() + .ForEach(type => _loader.Add( + type.Name, + (ILayoutLoader)type.GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes))); + } + + public static ILayoutLoader GetLayoutLoader(string nome) + { + if (!_loader.ContainsKey(nome)) + throw new ArgumentException(nome); + return _loader[nome]; + } + + public static ILayoutSaver GetLayoutSaver(string nome) + { + if (!_saver.ContainsKey(nome)) + throw new ArgumentException(nome); + return _saver[nome]; + } + } +} diff --git a/PrimaProvaProgetto/Persistance/MenuPersisterFactory.cs b/PrimaProvaProgetto/Persistance/MenuPersisterFactory.cs new file mode 100644 index 0000000..2a3c683 --- /dev/null +++ b/PrimaProvaProgetto/Persistance/MenuPersisterFactory.cs @@ -0,0 +1,99 @@ +using Newtonsoft.Json; +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Persistance +{ + class MenuPersisterFactory + { + + private static readonly Dictionary _saver; + private static readonly Dictionary _loader; + + static MenuPersisterFactory() + { + /* popolamento dei dizionari: + * come nella factory degli algoritmi di previsione + */ + _saver = new Dictionary(); + Assembly.GetExecutingAssembly().GetTypes() + .Where(type => (type.GetInterface("IMenuSaver") != null)) + .ToList() + .ForEach(type => _saver.Add( + type.Name, + (IMenuSaver)type.GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes))); + + _loader = new Dictionary(); + Assembly.GetExecutingAssembly().GetTypes() + .Where(type => (type.GetInterface("IMenuLoader") != null)) + .ToList() + .ForEach(type => _loader.Add( + type.Name, + (IMenuLoader)type.GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes))); + } + + public static IMenuLoader GetMenuLoader(string nome) + { + if (!_loader.ContainsKey(nome)) + throw new ArgumentException(nome); + return _loader[nome]; + } + + public static IMenuSaver GetMenuSaver(string nome) + { + if (!_saver.ContainsKey(nome)) + throw new ArgumentException(nome); + return _saver[nome]; + } + } + + /* + * Non salva il il prezzo, quindi non è proprio funzionante + */ + class SimpleMenuLoader : IMenuLoader + { + public List Load() + { + List res = null; + try + { + using (StreamReader r = new StreamReader("menu.json")) + { + string json = r.ReadToEnd(); + res = JsonConvert.DeserializeObject>(json); + } + } + catch (FileNotFoundException) + { + //aggiungere finestra di errore?? + } + + return (res == null) ? (new List()) : (res); + } + } + + class SimpleMenuSaver : IMenuSaver + { + public void Save(List menu) + { + try + { + using (StreamWriter w = new StreamWriter("menu.json")) + { + string json = JsonConvert.SerializeObject(menu); + w.Write(json); + } + } + catch + { + } + } + } + +} diff --git a/PrimaProvaProgetto/Persistance/SimpleJsonLayoutPersister.cs b/PrimaProvaProgetto/Persistance/SimpleJsonLayoutPersister.cs new file mode 100644 index 0000000..330f165 --- /dev/null +++ b/PrimaProvaProgetto/Persistance/SimpleJsonLayoutPersister.cs @@ -0,0 +1,62 @@ +using Newtonsoft.Json; +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Persistance +{ + class SimpleJsonLayoutLoader : ILayoutLoader + { + public Dictionary Load(TipoLayout tipo) + { + string fileName; + Dictionary res = null; + + switch (tipo) + { + case TipoLayout.Default: + fileName = "default.json"; + break; + case TipoLayout.Ultimo: + fileName = "ultimo.json"; + break; + default: + return new Dictionary(); + } + + try + { + using (StreamReader r = new StreamReader(fileName)) + { + string json = r.ReadToEnd(); + res = JsonConvert.DeserializeObject>(json); + } + } + catch (FileNotFoundException) {} + + return (res == null) ? (new Dictionary()) : (res); + } + } + + class SimpleJsonLayoutSaver : ILayoutSaver + { + public void Save(Dictionary layout) + { + try + { + using (StreamWriter w = new StreamWriter("ultimo.json")) + { + string json = JsonConvert.SerializeObject(layout); + w.Write(json); + } + } + catch + { + } + } + } +} diff --git a/PrimaProvaProgetto/PersistenzaDiagram.cd b/PrimaProvaProgetto/PersistenzaDiagram.cd new file mode 100644 index 0000000..063e5fe --- /dev/null +++ b/PrimaProvaProgetto/PersistenzaDiagram.cd @@ -0,0 +1,93 @@ + + + + + + AAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\MenuPersisterFactory.cs + + + + + + + AAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\SimpleJsonLayoutPersister.cs + + + + + + + AAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\MenuPersisterFactory.cs + + + + + + + AAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\SimpleJsonLayoutPersister.cs + + + + + + + AAAAAAAAAAAAACAAAAAAAAAAQAAAAAAAAAAgAAAAAAA= + Persistance\MenuPersisterFactory.cs + + + + + + + + + + AAAAAAAAAIAAAAAEAAAAAAAAQAAAAAAAAAAgAAAAAAA= + Persistance\LayoutPersisterFactory.cs + + + + + + + + + + AAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\ILayoutPersister.cs + + + + + + AAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\ILayoutPersister.cs + + + + + + AAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\IMenuPersister.cs + + + + + + AAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Persistance\IMenuPersister.cs + + + + + + AAAAAAAAAAAAAAgAAAAAIAQAAAAAAAAAAAAAAAAAAAA= + Persistance\ILayoutPersister.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/AllergeniModifier.cs b/PrimaProvaProgetto/Presentation/AllergeniModifier.cs index a4b6a57..05d5885 100644 --- a/PrimaProvaProgetto/Presentation/AllergeniModifier.cs +++ b/PrimaProvaProgetto/Presentation/AllergeniModifier.cs @@ -11,12 +11,12 @@ namespace PrimaProvaProgetto.Presentation { - public partial class AllergeniModifier : UserControl + public partial class AllergeniModifier : UserControl, IModifierControl { public AllergeniModifier() { InitializeComponent(); - foreach (Allergene all in Ristorante.GetInstance().Allergeni) + foreach (Allergene all in LocaleRistorazione.GetInstance().Allergeni) { CheckBox cb = new CheckBox(); cb.Name = "_" + all.Nome + "CheckBox"; @@ -46,5 +46,17 @@ public List Allergeni } } + public object MyValue + { + get { return Value; } + set { Value = (List)value; } + } + + public List Value + { + get { return Allergeni; } + set { Allergeni = value; } + } + } } diff --git a/PrimaProvaProgetto/Presentation/CaposalaForm.Designer.cs b/PrimaProvaProgetto/Presentation/CaposalaForm.Designer.cs new file mode 100644 index 0000000..ad82c7f --- /dev/null +++ b/PrimaProvaProgetto/Presentation/CaposalaForm.Designer.cs @@ -0,0 +1,264 @@ +namespace PrimaProvaProgetto.Presentation +{ + partial class CaposalaForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this._prenotazioniPanel = new System.Windows.Forms.Panel(); + this.label1 = new System.Windows.Forms.Label(); + this._tavoliPanel = new System.Windows.Forms.Panel(); + this.label2 = new System.Windows.Forms.Label(); + this._prenotazioniListView = new System.Windows.Forms.ListView(); + this._tavoliListView = new System.Windows.Forms.ListView(); + this._tavoliContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.occupaTavoloToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.liberaTavoloToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this._prenotazioniContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); + this.modificaPrenotazioneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.eliminaPrenotazioneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this._insertPrenotazioneMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + this.inserisciNuovaPrenotazioneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.btnFineSerata = new System.Windows.Forms.Button(); + this.tableLayoutPanel1.SuspendLayout(); + this._prenotazioniPanel.SuspendLayout(); + this._tavoliPanel.SuspendLayout(); + this._tavoliContextMenuStrip.SuspendLayout(); + this._prenotazioniContextMenuStrip.SuspendLayout(); + this._insertPrenotazioneMenu.SuspendLayout(); + this.SuspendLayout(); + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.AutoScroll = true; + this.tableLayoutPanel1.BackColor = System.Drawing.SystemColors.ButtonFace; + this.tableLayoutPanel1.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Outset; + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this._prenotazioniPanel, 0, 0); + this.tableLayoutPanel1.Controls.Add(this._tavoliPanel, 1, 0); + this.tableLayoutPanel1.Controls.Add(this._prenotazioniListView, 0, 1); + this.tableLayoutPanel1.Controls.Add(this._tavoliListView, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.btnFineSerata, 1, 2); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 3; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 135F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(1356, 971); + this.tableLayoutPanel1.TabIndex = 0; + // + // _prenotazioniPanel + // + this._prenotazioniPanel.BackColor = System.Drawing.Color.DarkOrange; + this._prenotazioniPanel.Controls.Add(this.label1); + this._prenotazioniPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this._prenotazioniPanel.Location = new System.Drawing.Point(6, 7); + this._prenotazioniPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this._prenotazioniPanel.Name = "_prenotazioniPanel"; + this._prenotazioniPanel.Size = new System.Drawing.Size(667, 125); + this._prenotazioniPanel.TabIndex = 0; + // + // label1 + // + this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Bookman Old Style", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(83, 19); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(513, 84); + this.label1.TabIndex = 0; + this.label1.Text = "Prenotazioni"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // _tavoliPanel + // + this._tavoliPanel.BackColor = System.Drawing.Color.Gold; + this._tavoliPanel.Controls.Add(this.label2); + this._tavoliPanel.Dock = System.Windows.Forms.DockStyle.Fill; + this._tavoliPanel.Location = new System.Drawing.Point(683, 7); + this._tavoliPanel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this._tavoliPanel.Name = "_tavoliPanel"; + this._tavoliPanel.Size = new System.Drawing.Size(667, 125); + this._tavoliPanel.TabIndex = 1; + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Bookman Old Style", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(98, 19); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(490, 84); + this.label2.TabIndex = 0; + this.label2.Text = "Stato Tavoli"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // _prenotazioniListView + // + this._prenotazioniListView.Dock = System.Windows.Forms.DockStyle.Fill; + this._prenotazioniListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this._prenotazioniListView.HideSelection = false; + this._prenotazioniListView.Location = new System.Drawing.Point(6, 144); + this._prenotazioniListView.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this._prenotazioniListView.Name = "_prenotazioniListView"; + this._prenotazioniListView.ShowItemToolTips = true; + this._prenotazioniListView.Size = new System.Drawing.Size(667, 738); + this._prenotazioniListView.TabIndex = 2; + this._prenotazioniListView.UseCompatibleStateImageBehavior = false; + this._prenotazioniListView.View = System.Windows.Forms.View.List; + // + // _tavoliListView + // + this._tavoliListView.Dock = System.Windows.Forms.DockStyle.Fill; + this._tavoliListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this._tavoliListView.Location = new System.Drawing.Point(683, 144); + this._tavoliListView.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this._tavoliListView.Name = "_tavoliListView"; + this._tavoliListView.Size = new System.Drawing.Size(667, 738); + this._tavoliListView.TabIndex = 3; + this._tavoliListView.UseCompatibleStateImageBehavior = false; + this._tavoliListView.View = System.Windows.Forms.View.List; + // + // _tavoliContextMenuStrip + // + this._tavoliContextMenuStrip.ImageScalingSize = new System.Drawing.Size(24, 24); + this._tavoliContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.occupaTavoloToolStripMenuItem, + this.liberaTavoloToolStripMenuItem}); + this._tavoliContextMenuStrip.Name = "contextMenuStrip1"; + this._tavoliContextMenuStrip.Size = new System.Drawing.Size(201, 64); + this._tavoliContextMenuStrip.Text = "Menù"; + // + // occupaTavoloToolStripMenuItem + // + this.occupaTavoloToolStripMenuItem.Name = "occupaTavoloToolStripMenuItem"; + this.occupaTavoloToolStripMenuItem.Size = new System.Drawing.Size(200, 30); + this.occupaTavoloToolStripMenuItem.Text = "Occupa Tavolo"; + // + // liberaTavoloToolStripMenuItem + // + this.liberaTavoloToolStripMenuItem.Name = "liberaTavoloToolStripMenuItem"; + this.liberaTavoloToolStripMenuItem.Size = new System.Drawing.Size(200, 30); + this.liberaTavoloToolStripMenuItem.Text = "Libera Tavolo"; + // + // _prenotazioniContextMenuStrip + // + this._prenotazioniContextMenuStrip.ImageScalingSize = new System.Drawing.Size(24, 24); + this._prenotazioniContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.modificaPrenotazioneToolStripMenuItem, + this.eliminaPrenotazioneToolStripMenuItem}); + this._prenotazioniContextMenuStrip.Name = "_prenotazioniContextMenuStrip"; + this._prenotazioniContextMenuStrip.Size = new System.Drawing.Size(262, 64); + // + // modificaPrenotazioneToolStripMenuItem + // + this.modificaPrenotazioneToolStripMenuItem.Name = "modificaPrenotazioneToolStripMenuItem"; + this.modificaPrenotazioneToolStripMenuItem.Size = new System.Drawing.Size(261, 30); + this.modificaPrenotazioneToolStripMenuItem.Text = "Modifica Prenotazione"; + // + // eliminaPrenotazioneToolStripMenuItem + // + this.eliminaPrenotazioneToolStripMenuItem.Name = "eliminaPrenotazioneToolStripMenuItem"; + this.eliminaPrenotazioneToolStripMenuItem.Size = new System.Drawing.Size(261, 30); + this.eliminaPrenotazioneToolStripMenuItem.Text = "Elimina Prenotazione"; + // + // _insertPrenotazioneMenu + // + this._insertPrenotazioneMenu.ImageScalingSize = new System.Drawing.Size(24, 24); + this._insertPrenotazioneMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.inserisciNuovaPrenotazioneToolStripMenuItem}); + this._insertPrenotazioneMenu.Name = "_insertPrenotazioneMenu"; + this._insertPrenotazioneMenu.Size = new System.Drawing.Size(312, 34); + // + // inserisciNuovaPrenotazioneToolStripMenuItem + // + this.inserisciNuovaPrenotazioneToolStripMenuItem.Name = "inserisciNuovaPrenotazioneToolStripMenuItem"; + this.inserisciNuovaPrenotazioneToolStripMenuItem.Size = new System.Drawing.Size(311, 30); + this.inserisciNuovaPrenotazioneToolStripMenuItem.Text = "Inserisci Nuova Prenotazione"; + // + // btnFineSerata + // + this.btnFineSerata.Anchor = System.Windows.Forms.AnchorStyles.None; + this.btnFineSerata.Location = new System.Drawing.Point(900, 904); + this.btnFineSerata.Name = "btnFineSerata"; + this.btnFineSerata.Size = new System.Drawing.Size(233, 50); + this.btnFineSerata.TabIndex = 4; + this.btnFineSerata.Text = "&Fine serata"; + this.btnFineSerata.UseVisualStyleBackColor = true; + // + // CaposalaForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1356, 971); + this.Controls.Add(this.tableLayoutPanel1); + this.Location = new System.Drawing.Point(600, 75); + this.Name = "CaposalaForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.Text = "CaposalaForm"; + this.tableLayoutPanel1.ResumeLayout(false); + this._prenotazioniPanel.ResumeLayout(false); + this._prenotazioniPanel.PerformLayout(); + this._tavoliPanel.ResumeLayout(false); + this._tavoliPanel.PerformLayout(); + this._tavoliContextMenuStrip.ResumeLayout(false); + this._prenotazioniContextMenuStrip.ResumeLayout(false); + this._insertPrenotazioneMenu.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Panel _prenotazioniPanel; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Panel _tavoliPanel; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ListView _prenotazioniListView; + private System.Windows.Forms.ListView _tavoliListView; + private System.Windows.Forms.ContextMenuStrip _tavoliContextMenuStrip; + private System.Windows.Forms.ToolStripMenuItem occupaTavoloToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem liberaTavoloToolStripMenuItem; + private System.Windows.Forms.ContextMenuStrip _prenotazioniContextMenuStrip; + private System.Windows.Forms.ToolStripMenuItem modificaPrenotazioneToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem eliminaPrenotazioneToolStripMenuItem; + private System.Windows.Forms.ContextMenuStrip _insertPrenotazioneMenu; + private System.Windows.Forms.ToolStripMenuItem inserisciNuovaPrenotazioneToolStripMenuItem; + private System.Windows.Forms.Button btnFineSerata; + } +} \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/CaposalaForm.cs b/PrimaProvaProgetto/Presentation/CaposalaForm.cs new file mode 100644 index 0000000..446d015 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/CaposalaForm.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using PrimaProvaProgetto.Model; +using System.Collections.ObjectModel; + +namespace PrimaProvaProgetto.Presentation +{ + public partial class CaposalaForm : Form + { + + + public CaposalaForm() + { + InitializeComponent(); + + //Rectangle resolution = System.Windows.Forms.Screen.PrimaryScreen.Bounds; + //if (resolution.Height < Size.Height || resolution.Width < Size.Width) + //{ + + // //La dimenione la riduco ulteriormente per evitare che finisca sotto la barra inferiore + // //(solitamente la gente ha la barra in basso, so che non è il massimo come soluzione) + // Size = new Size(resolution.Width, resolution.Height - 50); + + //} + + ////NON permette il ridimensionamento + //MaximumSize = Size; + //MinimumSize = Size; + } + + public ListView PrenotazioniListView + { + get { return _prenotazioniListView; } + } + + public ListView TavoliListView + { + get { return _tavoliListView; } + } + + public ToolStripMenuItem OccupaTavoloToolStripMenuItem + { + get { return occupaTavoloToolStripMenuItem; } + } + + public ToolStripMenuItem LiberaTavoloToolStripMenuItem + { + get { return liberaTavoloToolStripMenuItem; } + } + + public ToolStripMenuItem ModificaPrenotazioneToolStripMenuItem + { + get { return modificaPrenotazioneToolStripMenuItem; } + } + + public ToolStripMenuItem EliminaPrenotazioneToolStripMenuItem + { + get { return eliminaPrenotazioneToolStripMenuItem; } + } + + public ToolStripMenuItem InserisciNuovaPrenotazioneToolStripMenuItem + { + get { return inserisciNuovaPrenotazioneToolStripMenuItem; } + } + + public ContextMenuStrip TavoliContextMenuStrip + { + get { return _tavoliContextMenuStrip; } + } + + public ContextMenuStrip PrenotazioniContextMenuStrip + { + get { return _prenotazioniContextMenuStrip; } + } + + public ContextMenuStrip InserisciPrenotazioneContextMenuStrip + { + get { return _insertPrenotazioneMenu; } + } + + public Button FineSerataButton + { + get { return btnFineSerata; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/CaposalaForm.resx b/PrimaProvaProgetto/Presentation/CaposalaForm.resx new file mode 100644 index 0000000..3510c51 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/CaposalaForm.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + 17, 17 + + + 203, 17 + + + 427, 17 + + + 67 + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/CaposalaFormPresenter.cs b/PrimaProvaProgetto/Presentation/CaposalaFormPresenter.cs new file mode 100644 index 0000000..536ef13 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/CaposalaFormPresenter.cs @@ -0,0 +1,264 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Timers; +using System.Collections.Specialized; +using System.Windows.Forms; +using System.Collections.ObjectModel; +using PrimaProvaProgetto.Model; + +namespace PrimaProvaProgetto.Presentation +{ + class CaposalaFormPresenter + { + private CaposalaForm _target; + private LocaleRistorazione _localeRistorazione; + /* + * NOTE: + * Ci sono alcune ripetizioni di codice, al momento non sono riuscito a trovare una soluzione migliore + * in quanto dinamicamente popolo la lista e se cerco di risalire al numero di tavolo in altre parti del codice + * (es: subito dopo aver caricato il layout) non ottengo il risultato cercato. + * Al momento la grafica delle prenotazioni è completamente funzionante, cliccando sullo spazio bianco + * compare il menu di inserimento nuova prenotazione, cliccando su una voce della lista invece quello di modifica/elimina. + * + * La grafica dei tavoli funziona ma per ora è scollegata dallo scheduling delle prenotazioni ai tavoli e aggiornamento + * della lista + */ + + private ModifierForm _modifierForm; + private ModifierFormPresenter _modifierFormPresenter; + + + public CaposalaFormPresenter(CaposalaForm target) + { + _target = target; + _localeRistorazione = LocaleRistorazione.GetInstance(); + _localeRistorazione.ListaPrenotazioni.CollectionChanged += RefreshPrenotazioni; + + foreach (Tavolo t in _localeRistorazione.Tavoli) + { + t.StatoChanged += RefreshTavoli; + } + + //Se per errore si chiude la finestra alla riapertura si hanno le prenotazioni di prima, idem per i tavoli + RefreshPrenotazioni(this, EventArgs.Empty); + RefreshTavoli(this, EventArgs.Empty); + + _modifierForm = new ModifierForm(); + _modifierFormPresenter = new ModifierFormPresenter(_modifierForm); + + + _target.PrenotazioniListView.MouseClick += _prenotazioniListView_MouseClick; + _target.PrenotazioniListView.MouseDown += _prenotazioniListView_MouseDown; + _target.TavoliListView.MouseClick += _tavoliListView_MouseClick; + _target.OccupaTavoloToolStripMenuItem.Click += occupaTavoloToolStripMenuItem_Click; + _target.LiberaTavoloToolStripMenuItem.Click += liberaTavoloToolStripMenuItem_Click; + _target.ModificaPrenotazioneToolStripMenuItem.Click += modificaPrenotazioneToolStripMenuItem_Click; + _target.EliminaPrenotazioneToolStripMenuItem.Click += eliminaPrenotazioneToolStripMenuItem_Click; + _target.InserisciNuovaPrenotazioneToolStripMenuItem.Click += inserisciNuovaPrenotazioneToolStripMenuItem_Click; + + _target.FineSerataButton.Click += FineSerataButton_Click; + + } + + private void FineSerataButton_Click(object sender, EventArgs e) + { + if (_localeRistorazione.Tavoli.FindAll(t => t.Stato == StatoTavolo.Occupato).Count > 0) + { + DialogResult dr = MessageBox.Show( + "Impossibile terminare la serata, ci sono ancora " + _localeRistorazione.Tavoli.FindAll(t => t.Stato == StatoTavolo.Occupato).Count + " tavoli occupati. Liberare i tavoli e riprovare.", + "Fine serata", + MessageBoxButtons.OK, + MessageBoxIcon.Exclamation, + MessageBoxDefaultButton.Button1); + } + else + { + DialogResult dr = MessageBox.Show( + "Sei sicuro di voler terminare la serata?", + "Fine serata", + MessageBoxButtons.YesNo, + MessageBoxIcon.Information, + MessageBoxDefaultButton.Button2); + if (dr == DialogResult.Yes) + Application.Exit(); + } + } + + private void RefreshTavoli(object sender, EventArgs e) + { + ListView.ListViewItemCollection lista = _target.TavoliListView.Items; + + if (lista.Count != 0) + { + foreach (ListViewItem l in lista) + { + lista.Remove(l); + } + } + + foreach (Tavolo t in _localeRistorazione.Tavoli) + { + t.Numero = _localeRistorazione.Tavoli.IndexOf(t) + 1; + ListViewItem lv = new ListViewItem(); + lv.ForeColor = (t.Stato.Equals(StatoTavolo.Occupato)) ? System.Drawing.Color.Red : System.Drawing.Color.Green; + lv.Tag = t; + lv.Text = t.ToString(); + lista.Add(lv); + } + } + + private void RefreshPrenotazioni(object sender, EventArgs e) + { + //prima soluzione di refresh, un po' barbara ma fa il suo dovere + ListView.ListViewItemCollection lista = _target.PrenotazioniListView.Items; + if (lista.Count != 0) + { + foreach (ListViewItem i in lista) + lista.Remove(i); + } + foreach (Prenotazione p in _localeRistorazione.ListaPrenotazioni) + { + ListViewItem lv = new ListViewItem(); + lv.Tag = p; + lv.Text = p.ToString(); + lista.Add(lv); + } + } + + private void _tavoliListView_MouseClick(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Right) + { + if (_target.TavoliListView.FocusedItem.Selected) + { + _target.TavoliContextMenuStrip.Tag = _target.TavoliListView.FocusedItem; + _target.TavoliContextMenuStrip.Items[0].Enabled = ((Tavolo)_target.TavoliListView.FocusedItem.Tag).Stato.Equals(StatoTavolo.Libero); + _target.TavoliContextMenuStrip.Items[1].Enabled = ((Tavolo)_target.TavoliListView.FocusedItem.Tag).Stato.Equals(StatoTavolo.Occupato); + _target.TavoliContextMenuStrip.Show(Cursor.Position); + } + } + } + + private void _prenotazioniListView_MouseClick(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Right) + { + ListView lv = (ListView)sender; + if (lv.FocusedItem.Selected) + { + _target.PrenotazioniContextMenuStrip.Tag = lv.FocusedItem; + _target.PrenotazioniContextMenuStrip.Show(Cursor.Position); + } + } + } + + private void modificaPrenotazioneToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem t = (ToolStripMenuItem)sender; + ListViewItem lvi = (ListViewItem)t.GetCurrentParent().Tag; + Prenotazione p = (Prenotazione)lvi.Tag; + ObservableCollection lista = LocaleRistorazione.GetInstance().ListaPrenotazioni; + + + int index = lvi.ListView.Items.IndexOf(lvi); + _modifierFormPresenter.SetEditableObject(p); + + if (_modifierForm.ShowDialog() == DialogResult.OK) + { + lista.RemoveAt(index); + lista.Insert(index, p); + } + } + + private void eliminaPrenotazioneToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem t = (ToolStripMenuItem)sender; + ListViewItem lvi = (ListViewItem)t.GetCurrentParent().Tag; + Prenotazione p = (Prenotazione)lvi.Tag; + LocaleRistorazione.GetInstance().ListaPrenotazioni.Remove(p); + MessageBox.Show("Cancellazione Effettuata", "Elimina"); + } + + //unico handler per occupa e libera tavolo, differenzio il cambio in base allo stato del tavolo cliccato + private void occupaTavoloToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem t = (ToolStripMenuItem)sender; + ListViewItem lvi = (ListViewItem)t.GetCurrentParent().Tag; + LocaleRistorazione r = LocaleRistorazione.GetInstance(); + Tavolo tav = (Tavolo)lvi.Tag; + + int index = lvi.ListView.Items.IndexOf(lvi); + + Prenotazione first = getPrenotazione(); + bool vuota = false; + + if (first == null) + { + vuota = true; + } + + if (!vuota && first.NumeroCoperti <= tav.PostiMax) + { + r.Tavoli.ElementAt(index).Stato = StatoTavolo.Occupato; + r.Tavoli.ElementAt(index).Numero = r.Tavoli.IndexOf(r.Tavoli.ElementAt(index)) + 1; + r.Tavoli.ElementAt(index).Coperti = first.NumeroCoperti; + r.Tavoli.ElementAt(index).CalcolaTempo.OccupaTavolo(); + r.ListaPrenotazioni.Remove(first); + + MessageBox.Show("Cliente " + first.ToString() + " al " + r.Tavoli.ElementAt(index)); + } + } + + private Prenotazione getPrenotazione() + { + //return (Ristorante.GetInstance().ListaPrenotazioni.Count != 0) ? Ristorante.GetInstance().ListaPrenotazioni.First() : null; + if (LocaleRistorazione.GetInstance().ListaPrenotazioni.Count == 0) + { + MessageBox.Show("Nessuna voce nella lista prenotazioni"); + return null; + } + if (_target.PrenotazioniListView.SelectedItems.Count != 1) + { + MessageBox.Show("Seleziona una voce dalla lista di prenotazione"); + return null; + } + return (Prenotazione)_target.PrenotazioniListView.SelectedItems[0].Tag; + } + + private void _prenotazioniListView_MouseDown(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Right) + { + ListView lv = (ListView)sender; + if (lv.CheckedItems.Count == 0) + { + _target.InserisciPrenotazioneContextMenuStrip.Show(Cursor.Position); + } + } + } + + private void inserisciNuovaPrenotazioneToolStripMenuItem_Click(object sender, EventArgs e) + { + new InserimentoPrenotazioneForm().Show(); + } + + private void liberaTavoloToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem t = (ToolStripMenuItem)sender; + ListViewItem lvi = (ListViewItem)t.GetCurrentParent().Tag; + LocaleRistorazione r = LocaleRistorazione.GetInstance(); + Tavolo tav = (Tavolo)lvi.Tag; + + tav.CalcolaTempo.LiberaTavolo(); + tav.Stato = StatoTavolo.Libero; + tav.Numero = r.Tavoli.IndexOf(tav) + 1; + MessageBox.Show(tav.ToString()); + } + } + +} + diff --git a/PrimaProvaProgetto/Presentation/CategoriaModifier.cs b/PrimaProvaProgetto/Presentation/CategoriaModifier.cs index 0def59a..96f2bd5 100644 --- a/PrimaProvaProgetto/Presentation/CategoriaModifier.cs +++ b/PrimaProvaProgetto/Presentation/CategoriaModifier.cs @@ -11,7 +11,7 @@ namespace PrimaProvaProgetto.Presentation { - public partial class CategoriaModifier : UserControl + public partial class CategoriaModifier : UserControl, IModifierControl { public CategoriaModifier() { @@ -43,5 +43,12 @@ public Categoria Checked ((RadioButton)(tableLayoutPanel1.Controls.Find("_" + value.ToString() + "RadioButton", true)[0])).Checked = true; } } + + public object MyValue + { + get { return Checked; } + set { Checked = (Categoria)value ; } + } + } } diff --git a/PrimaProvaProgetto/Presentation/ClientiForm.Designer.cs b/PrimaProvaProgetto/Presentation/ClientiForm.Designer.cs new file mode 100644 index 0000000..ec8aeed --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ClientiForm.Designer.cs @@ -0,0 +1,462 @@ +namespace PrimaProvaProgetto.Presentation +{ + partial class ClientiForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.splitContainer2 = new System.Windows.Forms.SplitContainer(); + this._allergeniFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); + this._categorieFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this._labelAllergeniSelezionati = new System.Windows.Forms.Label(); + this.splitContainer3 = new System.Windows.Forms.SplitContainer(); + this.label2 = new System.Windows.Forms.Label(); + this._menuDataGridView = new System.Windows.Forms.DataGridView(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this._panelAttesaPers7 = new System.Windows.Forms.TableLayoutPanel(); + this._labelAttesaPers7 = new System.Windows.Forms.Label(); + this._panelAttesaPers5 = new System.Windows.Forms.TableLayoutPanel(); + this._labelAttesaPers5 = new System.Windows.Forms.Label(); + this._panelAttesaPers3 = new System.Windows.Forms.TableLayoutPanel(); + this._labelAttesaPers3 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this._aggiungiPrenotazioneButton = new System.Windows.Forms.Button(); + this._panelAttesaPers1 = new System.Windows.Forms.TableLayoutPanel(); + this._labelAttesaPers1 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); + this.splitContainer2.Panel1.SuspendLayout(); + this.splitContainer2.Panel2.SuspendLayout(); + this.splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._menuDataGridView)).BeginInit(); + this.tableLayoutPanel1.SuspendLayout(); + this._panelAttesaPers7.SuspendLayout(); + this._panelAttesaPers5.SuspendLayout(); + this._panelAttesaPers3.SuspendLayout(); + this._panelAttesaPers1.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.Control; + this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1); + this.splitContainer1.Size = new System.Drawing.Size(976, 662); + this.splitContainer1.SplitterDistance = 334; + this.splitContainer1.TabIndex = 0; + // + // splitContainer2 + // + this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer2.Location = new System.Drawing.Point(0, 0); + this.splitContainer2.Name = "splitContainer2"; + this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer2.Panel1 + // + this.splitContainer2.Panel1.Controls.Add(this._allergeniFlowLayoutPanel); + this.splitContainer2.Panel1.Controls.Add(this._categorieFlowLayoutPanel); + this.splitContainer2.Panel1.Controls.Add(this.label1); + this.splitContainer2.Panel1.Controls.Add(this._labelAllergeniSelezionati); + // + // splitContainer2.Panel2 + // + this.splitContainer2.Panel2.Controls.Add(this.splitContainer3); + this.splitContainer2.Size = new System.Drawing.Size(334, 662); + this.splitContainer2.SplitterDistance = 266; + this.splitContainer2.SplitterWidth = 5; + this.splitContainer2.TabIndex = 0; + // + // _allergeniFlowLayoutPanel + // + this._allergeniFlowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this._allergeniFlowLayoutPanel.AutoSize = true; + this._allergeniFlowLayoutPanel.Location = new System.Drawing.Point(14, 168); + this._allergeniFlowLayoutPanel.Name = "_allergeniFlowLayoutPanel"; + this._allergeniFlowLayoutPanel.Size = new System.Drawing.Size(309, 80); + this._allergeniFlowLayoutPanel.TabIndex = 11; + // + // _categorieFlowLayoutPanel + // + this._categorieFlowLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this._categorieFlowLayoutPanel.BackColor = System.Drawing.SystemColors.Control; + this._categorieFlowLayoutPanel.Location = new System.Drawing.Point(14, 42); + this._categorieFlowLayoutPanel.Name = "_categorieFlowLayoutPanel"; + this._categorieFlowLayoutPanel.Size = new System.Drawing.Size(309, 85); + this._categorieFlowLayoutPanel.TabIndex = 10; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(20, 18); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(78, 20); + this.label1.TabIndex = 9; + this.label1.Text = "Categorie"; + // + // _labelAllergeniSelezionati + // + this._labelAllergeniSelezionati.AutoSize = true; + this._labelAllergeniSelezionati.Location = new System.Drawing.Point(20, 145); + this._labelAllergeniSelezionati.Name = "_labelAllergeniSelezionati"; + this._labelAllergeniSelezionati.Size = new System.Drawing.Size(70, 20); + this._labelAllergeniSelezionati.TabIndex = 8; + this._labelAllergeniSelezionati.Text = "Allergeni"; + // + // splitContainer3 + // + this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer3.Location = new System.Drawing.Point(0, 0); + this.splitContainer3.Name = "splitContainer3"; + this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer3.Panel1 + // + this.splitContainer3.Panel1.Controls.Add(this.label2); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this._menuDataGridView); + this.splitContainer3.Size = new System.Drawing.Size(334, 391); + this.splitContainer3.SplitterDistance = 38; + this.splitContainer3.SplitterWidth = 5; + this.splitContainer3.TabIndex = 0; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(20, 9); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(49, 20); + this.label2.TabIndex = 0; + this.label2.Text = "Menù"; + // + // _menuDataGridView + // + this._menuDataGridView.AllowUserToAddRows = false; + this._menuDataGridView.AllowUserToDeleteRows = false; + this._menuDataGridView.AllowUserToResizeColumns = false; + this._menuDataGridView.AllowUserToResizeRows = false; + this._menuDataGridView.BackgroundColor = System.Drawing.SystemColors.Control; + this._menuDataGridView.BorderStyle = System.Windows.Forms.BorderStyle.None; + this._menuDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this._menuDataGridView.Dock = System.Windows.Forms.DockStyle.Fill; + this._menuDataGridView.Location = new System.Drawing.Point(0, 0); + this._menuDataGridView.MultiSelect = false; + this._menuDataGridView.Name = "_menuDataGridView"; + this._menuDataGridView.ReadOnly = true; + this._menuDataGridView.RowTemplate.Height = 28; + this._menuDataGridView.ShowEditingIcon = false; + this._menuDataGridView.Size = new System.Drawing.Size(334, 348); + this._menuDataGridView.TabIndex = 0; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Controls.Add(this._panelAttesaPers7, 1, 4); + this.tableLayoutPanel1.Controls.Add(this._panelAttesaPers5, 1, 3); + this.tableLayoutPanel1.Controls.Add(this._panelAttesaPers3, 1, 2); + this.tableLayoutPanel1.Controls.Add(this.label11, 0, 4); + this.tableLayoutPanel1.Controls.Add(this.label9, 0, 3); + this.tableLayoutPanel1.Controls.Add(this.label7, 0, 2); + this.tableLayoutPanel1.Controls.Add(this.label5, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.label4, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.label3, 0, 0); + this.tableLayoutPanel1.Controls.Add(this._aggiungiPrenotazioneButton, 1, 5); + this.tableLayoutPanel1.Controls.Add(this._panelAttesaPers1, 1, 1); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 6; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18.18182F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.090909F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(638, 662); + this.tableLayoutPanel1.TabIndex = 0; + // + // _panelAttesaPers7 + // + this._panelAttesaPers7.ColumnCount = 1; + this._panelAttesaPers7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers7.Controls.Add(this._labelAttesaPers7, 0, 0); + this._panelAttesaPers7.Dock = System.Windows.Forms.DockStyle.Fill; + this._panelAttesaPers7.Location = new System.Drawing.Point(322, 483); + this._panelAttesaPers7.Name = "_panelAttesaPers7"; + this._panelAttesaPers7.RowCount = 1; + this._panelAttesaPers7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 114F)); + this._panelAttesaPers7.Size = new System.Drawing.Size(313, 114); + this._panelAttesaPers7.TabIndex = 14; + // + // _labelAttesaPers7 + // + this._labelAttesaPers7.Anchor = System.Windows.Forms.AnchorStyles.None; + this._labelAttesaPers7.AutoSize = true; + this._labelAttesaPers7.Location = new System.Drawing.Point(156, 47); + this._labelAttesaPers7.Name = "_labelAttesaPers7"; + this._labelAttesaPers7.Size = new System.Drawing.Size(0, 20); + this._labelAttesaPers7.TabIndex = 1; + // + // _panelAttesaPers5 + // + this._panelAttesaPers5.ColumnCount = 1; + this._panelAttesaPers5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers5.Controls.Add(this._labelAttesaPers5, 0, 0); + this._panelAttesaPers5.Dock = System.Windows.Forms.DockStyle.Fill; + this._panelAttesaPers5.Location = new System.Drawing.Point(322, 363); + this._panelAttesaPers5.Name = "_panelAttesaPers5"; + this._panelAttesaPers5.RowCount = 1; + this._panelAttesaPers5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 114F)); + this._panelAttesaPers5.Size = new System.Drawing.Size(313, 114); + this._panelAttesaPers5.TabIndex = 13; + // + // _labelAttesaPers5 + // + this._labelAttesaPers5.Anchor = System.Windows.Forms.AnchorStyles.None; + this._labelAttesaPers5.AutoSize = true; + this._labelAttesaPers5.Location = new System.Drawing.Point(156, 47); + this._labelAttesaPers5.Name = "_labelAttesaPers5"; + this._labelAttesaPers5.Size = new System.Drawing.Size(0, 20); + this._labelAttesaPers5.TabIndex = 1; + // + // _panelAttesaPers3 + // + this._panelAttesaPers3.ColumnCount = 1; + this._panelAttesaPers3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers3.Controls.Add(this._labelAttesaPers3, 0, 0); + this._panelAttesaPers3.Dock = System.Windows.Forms.DockStyle.Fill; + this._panelAttesaPers3.Location = new System.Drawing.Point(322, 243); + this._panelAttesaPers3.Name = "_panelAttesaPers3"; + this._panelAttesaPers3.RowCount = 1; + this._panelAttesaPers3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 114F)); + this._panelAttesaPers3.Size = new System.Drawing.Size(313, 114); + this._panelAttesaPers3.TabIndex = 12; + // + // _labelAttesaPers3 + // + this._labelAttesaPers3.Anchor = System.Windows.Forms.AnchorStyles.None; + this._labelAttesaPers3.AutoSize = true; + this._labelAttesaPers3.Location = new System.Drawing.Point(156, 47); + this._labelAttesaPers3.Name = "_labelAttesaPers3"; + this._labelAttesaPers3.Size = new System.Drawing.Size(0, 20); + this._labelAttesaPers3.TabIndex = 1; + // + // label11 + // + this.label11.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(146, 530); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(27, 20); + this.label11.TabIndex = 8; + this.label11.Text = "7+"; + // + // label9 + // + this.label9.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(143, 410); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(32, 20); + this.label9.TabIndex = 6; + this.label9.Text = "5-6"; + // + // label7 + // + this.label7.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(143, 290); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(32, 20); + this.label7.TabIndex = 4; + this.label7.Text = "3-4"; + // + // label5 + // + this.label5.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(143, 170); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(32, 20); + this.label5.TabIndex = 2; + this.label5.Text = "1-2"; + // + // label4 + // + this.label4.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(395, 50); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(166, 20); + this.label4.TabIndex = 1; + this.label4.Text = "Tempo attesa previsto"; + // + // label3 + // + this.label3.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(95, 50); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(128, 20); + this.label3.TabIndex = 0; + this.label3.Text = "Numero Persone"; + // + // _aggiungiPrenotazioneButton + // + this._aggiungiPrenotazioneButton.Anchor = System.Windows.Forms.AnchorStyles.None; + this._aggiungiPrenotazioneButton.Location = new System.Drawing.Point(380, 612); + this._aggiungiPrenotazioneButton.Name = "_aggiungiPrenotazioneButton"; + this._aggiungiPrenotazioneButton.Size = new System.Drawing.Size(196, 38); + this._aggiungiPrenotazioneButton.TabIndex = 10; + this._aggiungiPrenotazioneButton.Text = "&Aggiungi prenotazione"; + this._aggiungiPrenotazioneButton.UseVisualStyleBackColor = true; + // + // _panelAttesaPers1 + // + this._panelAttesaPers1.ColumnCount = 1; + this._panelAttesaPers1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers1.Controls.Add(this._labelAttesaPers1, 0, 0); + this._panelAttesaPers1.Dock = System.Windows.Forms.DockStyle.Fill; + this._panelAttesaPers1.Location = new System.Drawing.Point(322, 123); + this._panelAttesaPers1.Name = "_panelAttesaPers1"; + this._panelAttesaPers1.RowCount = 1; + this._panelAttesaPers1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this._panelAttesaPers1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 114F)); + this._panelAttesaPers1.Size = new System.Drawing.Size(313, 114); + this._panelAttesaPers1.TabIndex = 11; + // + // _labelAttesaPers1 + // + this._labelAttesaPers1.Anchor = System.Windows.Forms.AnchorStyles.None; + this._labelAttesaPers1.AutoSize = true; + this._labelAttesaPers1.Location = new System.Drawing.Point(156, 47); + this._labelAttesaPers1.Name = "_labelAttesaPers1"; + this._labelAttesaPers1.Size = new System.Drawing.Size(0, 20); + this._labelAttesaPers1.TabIndex = 0; + // + // ClientiForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(976, 662); + this.Controls.Add(this.splitContainer1); + this.Location = new System.Drawing.Point(100, 100); + this.Name = "ClientiForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; + this.Text = "ClientiForm"; + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.splitContainer2.Panel1.ResumeLayout(false); + this.splitContainer2.Panel1.PerformLayout(); + this.splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); + this.splitContainer2.ResumeLayout(false); + this.splitContainer3.Panel1.ResumeLayout(false); + this.splitContainer3.Panel1.PerformLayout(); + this.splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); + this.splitContainer3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._menuDataGridView)).EndInit(); + this.tableLayoutPanel1.ResumeLayout(false); + this.tableLayoutPanel1.PerformLayout(); + this._panelAttesaPers7.ResumeLayout(false); + this._panelAttesaPers7.PerformLayout(); + this._panelAttesaPers5.ResumeLayout(false); + this._panelAttesaPers5.PerformLayout(); + this._panelAttesaPers3.ResumeLayout(false); + this._panelAttesaPers3.PerformLayout(); + this._panelAttesaPers1.ResumeLayout(false); + this._panelAttesaPers1.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.SplitContainer splitContainer2; + private System.Windows.Forms.FlowLayoutPanel _allergeniFlowLayoutPanel; + private System.Windows.Forms.FlowLayoutPanel _categorieFlowLayoutPanel; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label _labelAllergeniSelezionati; + private System.Windows.Forms.SplitContainer splitContainer3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.DataGridView _menuDataGridView; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button _aggiungiPrenotazioneButton; + private System.Windows.Forms.TableLayoutPanel _panelAttesaPers7; + private System.Windows.Forms.Label _labelAttesaPers7; + private System.Windows.Forms.TableLayoutPanel _panelAttesaPers5; + private System.Windows.Forms.Label _labelAttesaPers5; + private System.Windows.Forms.TableLayoutPanel _panelAttesaPers3; + private System.Windows.Forms.Label _labelAttesaPers3; + private System.Windows.Forms.TableLayoutPanel _panelAttesaPers1; + private System.Windows.Forms.Label _labelAttesaPers1; + } +} \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/ClientiForm.cs b/PrimaProvaProgetto/Presentation/ClientiForm.cs new file mode 100644 index 0000000..b8d3b45 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ClientiForm.cs @@ -0,0 +1,138 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + public partial class ClientiForm : Form + { + public ClientiForm() + { + InitializeComponent(); + foreach (string cat in Enum.GetNames(typeof(Categoria))) + { + CheckBox cb = new CheckBox(); + cb.Name = "_" + cat + "CheckBox"; + cb.Text = cat; + cb.Tag = Enum.Parse(typeof(Categoria), cat); + cb.Checked = true; + cb.CheckedChanged += Cb_CheckedChanged; + _categorieFlowLayoutPanel.Controls.Add(cb); + } + foreach (Allergene all in LocaleRistorazione.GetInstance().Allergeni) + { + CheckBox cb = new CheckBox(); + cb.Name = "_" + all.Nome + "CheckBox"; + cb.Text = all.Nome; + cb.Tag = all; + cb.CheckedChanged += Cb_CheckedChanged; + _allergeniFlowLayoutPanel.Controls.Add(cb); + } + + MenuDataGridView.ShowCellToolTips = true; + MenuDataGridView.CellToolTipTextNeeded += MenuDataGridView_CellToolTipTextNeeded; + + //PanelAttesaPers1.BackColor = Color.LightGreen; + //LabelAttesaPers1.Text = "12 minuti"; + + //PanelAttesaPers3.BackColor = Color.Orange; + //LabelAttesaPers3.Text = "1 ora e 12 minuti"; + + Control.CheckForIllegalCrossThreadCalls = false; + + } + + private void MenuDataGridView_CellToolTipTextNeeded(object sender, DataGridViewCellToolTipTextNeededEventArgs e) + { + ToolTipTextNeeded?.Invoke(sender, e); + } + + private void Cb_CheckedChanged(object sender, EventArgs e) + { + OnSelezioneChanged(); + } + + public List CategorieSelezionate + { + get + { + List res = new List(); + foreach (CheckBox cb in _categorieFlowLayoutPanel.Controls.OfType()) + if (cb.Checked) + res.Add((Categoria)cb.Tag); + return res; + } + } + + public List AllergeniSelezionati + { + get + { + List res = new List(); + foreach (CheckBox cb in _allergeniFlowLayoutPanel.Controls.OfType()) + if (cb.Checked) + res.Add((Allergene)cb.Tag); + return res; + } + } + + public event EventHandler SelezioneChanged; + public event DataGridViewCellToolTipTextNeededEventHandler ToolTipTextNeeded; + + private void OnSelezioneChanged() + { + SelezioneChanged?.Invoke(this, EventArgs.Empty); + } + + public DataGridView MenuDataGridView + { + get { return _menuDataGridView; } + } + + public Label LabelAttesaPers1 + { + get { return _labelAttesaPers1; } + } + public Label LabelAttesaPers3 + { + get { return _labelAttesaPers3; } + } + public Label LabelAttesaPers5 + { + get { return _labelAttesaPers5; } + } + public Label LabelAttesaPers7 + { + get { return _labelAttesaPers7; } + } + + public TableLayoutPanel PanelAttesaPers1 + { + get { return _panelAttesaPers1; } + } + public TableLayoutPanel PanelAttesaPers3 + { + get { return _panelAttesaPers3; } + } + public TableLayoutPanel PanelAttesaPers5 + { + get { return _panelAttesaPers5; } + } + public TableLayoutPanel PanelAttesaPers7 + { + get { return _panelAttesaPers7; } + } + + public Button AggiungiPrenotazioneButton + { + get { return _aggiungiPrenotazioneButton; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/MoneyModifier.resx b/PrimaProvaProgetto/Presentation/ClientiForm.resx similarity index 100% rename from PrimaProvaProgetto/Presentation/MoneyModifier.resx rename to PrimaProvaProgetto/Presentation/ClientiForm.resx diff --git a/PrimaProvaProgetto/Presentation/ClientiFormSelezioneMenuPresenter.cs b/PrimaProvaProgetto/Presentation/ClientiFormSelezioneMenuPresenter.cs new file mode 100644 index 0000000..fb48f5d --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ClientiFormSelezioneMenuPresenter.cs @@ -0,0 +1,54 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class ClientiFormSelezioneMenuPresenter + { + private ClientiForm _target; + + public ClientiFormSelezioneMenuPresenter(ClientiForm target) + { + _target = target; + + Target.SelezioneChanged += Target_SelezioneChanged; + Target.MenuDataGridView.ViewMenu(new CriterioDiSelezioneByDisp().GetPietanze()); + Target.ToolTipTextNeeded += Target_ToolTipTextNeeded; + } + + private void Target_ToolTipTextNeeded(object sender, DataGridViewCellToolTipTextNeededEventArgs e) + { + //se non viene dalla casella del nome + //oppure viene dalla riga di intestazione + if (e.ColumnIndex != 0 || e.RowIndex == -1) + return; + else + e.ToolTipText = GetToolTipText(e.RowIndex); + } + + private void Target_SelezioneChanged(object sender, EventArgs e) + { + ICriterioDiSelezione criterio = CriterioDiSelezioneBuilder.GetCriterio(Target.CategorieSelezionate, Target.AllergeniSelezionati); + Target.MenuDataGridView.ViewMenu(criterio.GetPietanze()); + } + + public ClientiForm Target + { + get + { + return _target; + } + } + + private string GetToolTipText(int row) + { + DataGridViewRow element = Target.MenuDataGridView.Rows[row]; + return element.Cells["Categoria"].Value + Environment.NewLine + Environment.NewLine + element.Cells["Descrizione"].Value; + } + } +} diff --git a/PrimaProvaProgetto/Presentation/ClientiFormTempiAttesaPresenter.cs b/PrimaProvaProgetto/Presentation/ClientiFormTempiAttesaPresenter.cs new file mode 100644 index 0000000..1be98f8 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ClientiFormTempiAttesaPresenter.cs @@ -0,0 +1,108 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Collections.Specialized; +using System.Timers; +using System.Windows.Forms; +using System.Drawing; + +namespace PrimaProvaProgetto.Presentation +{ + class ClientiFormTempiAttesaPresenter + { + private ClientiForm _target; + + public ClientiFormTempiAttesaPresenter(ClientiForm target) + { + _target = target; + + LocaleRistorazione.GetInstance().ListaPrenotazioniChanged += RefreshListaPrenotazioni; + Target.AggiungiPrenotazioneButton.Click += AggiungiPrenotazioneButton_Click; + + System.Timers.Timer timer = new System.Timers.Timer(1000); + timer.Elapsed += Timer_Elapsed; + timer.Start(); + + } + + private void Timer_Elapsed(object sender, ElapsedEventArgs e) + { + DrawTempiAttesa(); + } + + private void AggiungiPrenotazioneButton_Click(object sender, EventArgs e) + { + new InserimentoPrenotazioneForm().Show(); + } + + public ClientiForm Target + { + get { return _target; } + } + + private void RefreshListaPrenotazioni(object sender, NotifyCollectionChangedEventArgs e) + { + DrawTempiAttesa(); + } + + private void DrawTempiAttesa() + { + for (int i = 1; i < 8; i += 2) + DrawSingoloTempo(i); + } + + private void DrawSingoloTempo(int nroPersone) + { + TimeSpan tempo = GetTempoAttesaMinimo(nroPersone); + + Label tempoAttesa = (Label)Target.GetType().GetProperty("LabelAttesaPers" + nroPersone).GetGetMethod().Invoke(Target, null); + TableLayoutPanel panelAttesa = (TableLayoutPanel)Target.GetType().GetProperty("PanelAttesaPers" + nroPersone).GetGetMethod().Invoke(Target, null); + tempoAttesa.Text = GetTempoString(tempo); + panelAttesa.BackColor = GetTempoAttesaColor(tempo); + + } + + private TimeSpan GetTempoAttesaMinimo(int nroPersone) + { + List tempi = new List(); + LocaleRistorazione.GetInstance().Tavoli.Where(t => t.PostiMax >= nroPersone && t.PostiMax <= (nroPersone + 1)).ToList() + .ForEach(t => tempi.Add(t.CalcolaTempo.TempoRimanente)); + tempi.Sort(); + if (tempi.Count == 0 || localeVuoto()) + return TimeSpan.Zero; + int index = 0; + LocaleRistorazione.GetInstance().ListaPrenotazioni.Where(p => p.NumeroCoperti >= nroPersone && p.NumeroCoperti <= (nroPersone + 1)).ToList() + .ForEach(p => tempi[index % tempi.Count] = tempi[index++ % tempi.Count] + Previsione.GetInstance().OttieniPrevisione(nroPersone)); + return tempi.Count != 0 ? tempi.Min() : TimeSpan.Zero; + } + + private string GetTempoString(TimeSpan tempo) + { + if (tempo == TimeSpan.Zero || localeVuoto()) + return "LIBERO"; + string res = ""; + if(tempo.Hours != 0) + res = String.Format("{0:%h} or" + ((tempo.Hours > 1) ? ("e") : ("a")) + " e ", tempo); + return res + String.Format("{0:%m} minuti", tempo); + } + + private Color GetTempoAttesaColor(TimeSpan tempoAttesa) + { + Dictionary dict = new Dictionary(); + dict.Add(new TimeSpan(0, 15, 0), Color.LightGreen); + dict.Add(new TimeSpan(0, 50, 0), Color.Orange); + dict.Add(TimeSpan.MaxValue, Color.Red); + TimeSpan res = dict.Keys.ToList().First(ts => tempoAttesa <= ts); + return dict[res]; + } + + private bool localeVuoto() + { + return (LocaleRistorazione.GetInstance().ListaPrenotazioni.Count == 0) && (LocaleRistorazione.GetInstance().Tavoli.Where(t => t.Stato.Equals(StatoTavolo.Occupato)).Count() == 0); + } + + } +} diff --git a/PrimaProvaProgetto/Presentation/Contenitore.cs b/PrimaProvaProgetto/Presentation/Contenitore.cs new file mode 100644 index 0000000..7ce2f9f --- /dev/null +++ b/PrimaProvaProgetto/Presentation/Contenitore.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Presentation +{ + public class Contenitore + { + private string _image; + private Point _location; + + public Contenitore() + { + _image = null; + _location = new Point(0,0); + } + + public string Image + { + get { return _image; } + set { _image = value; } + } + + public Point Location + { + get { return _location; } + set { _location = value; } + } + + + + + } +} diff --git a/PrimaProvaProgetto/Presentation/DataGridViewExtensions.cs b/PrimaProvaProgetto/Presentation/DataGridViewExtensions.cs new file mode 100644 index 0000000..f4d3b4a --- /dev/null +++ b/PrimaProvaProgetto/Presentation/DataGridViewExtensions.cs @@ -0,0 +1,24 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + static class DataGridViewExtensions + { + public static void ViewMenu(this DataGridView dataGridView, List menu) + { + dataGridView.DataSource = menu; + dataGridView.Columns["Descrizione"].Visible = false; + dataGridView.Columns["Disponibile"].Visible = false; + dataGridView.Columns["Categoria"].Visible = false; + dataGridView.RowHeadersVisible = false; + dataGridView.Columns["Titolo"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; + dataGridView.Columns["Prezzo"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; + } + } +} diff --git a/PrimaProvaProgetto/Presentation/FirstWindowForm.Designer.cs b/PrimaProvaProgetto/Presentation/FirstWindowForm.Designer.cs index a727b9c..a60fbe7 100644 --- a/PrimaProvaProgetto/Presentation/FirstWindowForm.Designer.cs +++ b/PrimaProvaProgetto/Presentation/FirstWindowForm.Designer.cs @@ -42,44 +42,53 @@ private void InitializeComponent() this.panel1.Controls.Add(this._sceltaMenuButton); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Margin = new System.Windows.Forms.Padding(2); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(291, 211); + this.panel1.Size = new System.Drawing.Size(204, 137); this.panel1.TabIndex = 0; // // _avviaTotemButton // + this._avviaTotemButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this._avviaTotemButton.Enabled = false; - this._avviaTotemButton.Location = new System.Drawing.Point(33, 109); + this._avviaTotemButton.Location = new System.Drawing.Point(22, 73); + this._avviaTotemButton.Margin = new System.Windows.Forms.Padding(2); this._avviaTotemButton.Name = "_avviaTotemButton"; - this._avviaTotemButton.Size = new System.Drawing.Size(215, 62); + this._avviaTotemButton.Size = new System.Drawing.Size(158, 40); this._avviaTotemButton.TabIndex = 3; this._avviaTotemButton.Text = "Avvio Totem Clienti"; this._avviaTotemButton.UseVisualStyleBackColor = true; // // _sceltaLayoutButton // - this._sceltaLayoutButton.Location = new System.Drawing.Point(157, 29); + this._sceltaLayoutButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this._sceltaLayoutButton.Location = new System.Drawing.Point(119, 19); + this._sceltaLayoutButton.Margin = new System.Windows.Forms.Padding(2); this._sceltaLayoutButton.Name = "_sceltaLayoutButton"; - this._sceltaLayoutButton.Size = new System.Drawing.Size(91, 62); + this._sceltaLayoutButton.Size = new System.Drawing.Size(61, 40); this._sceltaLayoutButton.TabIndex = 2; this._sceltaLayoutButton.Text = "Scelta layout"; this._sceltaLayoutButton.UseVisualStyleBackColor = true; // // _sceltaMenuButton // - this._sceltaMenuButton.Location = new System.Drawing.Point(33, 29); + this._sceltaMenuButton.Location = new System.Drawing.Point(22, 19); + this._sceltaMenuButton.Margin = new System.Windows.Forms.Padding(2); this._sceltaMenuButton.Name = "_sceltaMenuButton"; - this._sceltaMenuButton.Size = new System.Drawing.Size(91, 62); + this._sceltaMenuButton.Size = new System.Drawing.Size(61, 40); this._sceltaMenuButton.TabIndex = 1; this._sceltaMenuButton.Text = "Scelta menù"; this._sceltaMenuButton.UseVisualStyleBackColor = true; // // FirstWindowForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(291, 211); + this.ClientSize = new System.Drawing.Size(204, 137); this.Controls.Add(this.panel1); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "FirstWindowForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Avvio"; diff --git a/PrimaProvaProgetto/Presentation/FirstWindowForm.cs b/PrimaProvaProgetto/Presentation/FirstWindowForm.cs index a032d4d..646efdb 100644 --- a/PrimaProvaProgetto/Presentation/FirstWindowForm.cs +++ b/PrimaProvaProgetto/Presentation/FirstWindowForm.cs @@ -23,5 +23,20 @@ public FirstWindowForm() MinimumSize = Size; } + + public Button LayoutButton + { + get { return _sceltaLayoutButton; } + } + + public Button MenuButton + { + get { return _sceltaMenuButton; } + } + + public Button AvvioTotemClientiButton + { + get { return _avviaTotemButton; } + } } } diff --git a/PrimaProvaProgetto/Presentation/FirstWindowFormPresenter.cs b/PrimaProvaProgetto/Presentation/FirstWindowFormPresenter.cs new file mode 100644 index 0000000..19c1f20 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/FirstWindowFormPresenter.cs @@ -0,0 +1,82 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class FirstWindowFormPresenter + { + FirstWindowForm _target; + + public FirstWindowFormPresenter(FirstWindowForm target) + { + _target = target; + + Target.LayoutButton.Click += LayoutButton_Click; + Target.MenuButton.Click += MenuButton_Click; + Target.AvvioTotemClientiButton.Click += AvvioTotemClientiButton_Click; + Application.Idle += Application_Idle; + } + + private void Application_Idle(object sender, EventArgs e) + { + Target.AvvioTotemClientiButton.Enabled = + LocaleRistorazione.GetInstance().Menu.Where(p => p.Disponibile).Count() != 0 && + LocaleRistorazione.GetInstance().Tavoli.Count != 0; + } + + private void AvvioTotemClientiButton_Click(object sender, EventArgs e) + { + DialogResult dr = MessageBox.Show( + "Sei sicuro di voler avviare il Totem Clienti?", + "Conferma Avvio Totem Clienti", + MessageBoxButtons.YesNo, + MessageBoxIcon.Information, + MessageBoxDefaultButton.Button2); + if (dr == DialogResult.Yes) + { + Target.LayoutButton.Enabled = false; + Target.MenuButton.Enabled = false; + + //si dovrà lanciare la vista col presenter del totem clienti + ClientiForm cf = new ClientiForm(); + new ClientiFormSelezioneMenuPresenter(cf); + new ClientiFormTempiAttesaPresenter(cf); + cf.Show(); + + + + //e la vista col presenter per il totem del cameriere + CaposalaForm cpf = new CaposalaForm(); + new CaposalaFormPresenter(cpf); + cpf.Show(); + } + } + + private void MenuButton_Click(object sender, EventArgs e) + { + MenuForm mf = new MenuForm(); + new MenuFormPresenter(mf); + mf.Show(); + } + + private void LayoutButton_Click(object sender, EventArgs e) + { + LayoutForm lf = new LayoutForm(); + new LayoutFormPresenter(lf); + lf.Show(); + } + + public FirstWindowForm Target + { + get + { + return _target; + } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/IModifierControl.cs b/PrimaProvaProgetto/Presentation/IModifierControl.cs new file mode 100644 index 0000000..7c8a62b --- /dev/null +++ b/PrimaProvaProgetto/Presentation/IModifierControl.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PrimaProvaProgetto.Presentation +{ + interface IModifierControl + { + object MyValue + { + get; + set; + } + } +} diff --git a/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.Designer.cs b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.Designer.cs new file mode 100644 index 0000000..c356d86 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.Designer.cs @@ -0,0 +1,159 @@ +namespace PrimaProvaProgetto.Presentation +{ + partial class InserimentoPrenotazioneForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this._buttonOK = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this._textBoxNome = new System.Windows.Forms.TextBox(); + this._textBoxNumeroTel = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this._numericUpDownNumeroPosti = new System.Windows.Forms.NumericUpDown(); + this._buttonAnnulla = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this._numericUpDownNumeroPosti)).BeginInit(); + this.SuspendLayout(); + // + // _buttonOK + // + this._buttonOK.Location = new System.Drawing.Point(89, 96); + this._buttonOK.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this._buttonOK.Name = "_buttonOK"; + this._buttonOK.Size = new System.Drawing.Size(50, 19); + this._buttonOK.TabIndex = 0; + this._buttonOK.Text = "&OK"; + this._buttonOK.UseVisualStyleBackColor = true; + this._buttonOK.Click += new System.EventHandler(this._buttonOK_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(67, 15); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(35, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Nome"; + this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // _textBoxNome + // + this._textBoxNome.Location = new System.Drawing.Point(105, 13); + this._textBoxNome.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this._textBoxNome.Name = "_textBoxNome"; + this._textBoxNome.Size = new System.Drawing.Size(96, 20); + this._textBoxNome.TabIndex = 2; + // + // _textBoxNumeroTel + // + this._textBoxNumeroTel.Location = new System.Drawing.Point(105, 34); + this._textBoxNumeroTel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this._textBoxNumeroTel.Name = "_textBoxNumeroTel"; + this._textBoxNumeroTel.Size = new System.Drawing.Size(96, 20); + this._textBoxNumeroTel.TabIndex = 4; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(17, 36); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(85, 13); + this.label2.TabIndex = 3; + this.label2.Text = "Numero telefono"; + this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(33, 56); + this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(69, 13); + this.label3.TabIndex = 5; + this.label3.Text = "Numero posti"; + this.label3.TextAlign = System.Drawing.ContentAlignment.TopRight; + // + // _numericUpDownNumeroPosti + // + this._numericUpDownNumeroPosti.Location = new System.Drawing.Point(105, 55); + this._numericUpDownNumeroPosti.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this._numericUpDownNumeroPosti.Name = "_numericUpDownNumeroPosti"; + this._numericUpDownNumeroPosti.Size = new System.Drawing.Size(95, 20); + this._numericUpDownNumeroPosti.TabIndex = 6; + this._numericUpDownNumeroPosti.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + // + // _buttonAnnulla + // + this._buttonAnnulla.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this._buttonAnnulla.Location = new System.Drawing.Point(150, 96); + this._buttonAnnulla.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this._buttonAnnulla.Name = "_buttonAnnulla"; + this._buttonAnnulla.Size = new System.Drawing.Size(50, 19); + this._buttonAnnulla.TabIndex = 7; + this._buttonAnnulla.Text = "&Annulla"; + this._buttonAnnulla.UseVisualStyleBackColor = true; + this._buttonAnnulla.Click += new System.EventHandler(this._buttonAnnulla_Click); + // + // InserimentoPrenotazioneForm + // + this.AcceptButton = this._buttonOK; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this._buttonAnnulla; + this.ClientSize = new System.Drawing.Size(221, 133); + this.Controls.Add(this._buttonAnnulla); + this.Controls.Add(this._numericUpDownNumeroPosti); + this.Controls.Add(this.label3); + this.Controls.Add(this._textBoxNumeroTel); + this.Controls.Add(this.label2); + this.Controls.Add(this._textBoxNome); + this.Controls.Add(this.label1); + this.Controls.Add(this._buttonOK); + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.Name = "InserimentoPrenotazioneForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Inserimento Prenotazione"; + ((System.ComponentModel.ISupportInitialize)(this._numericUpDownNumeroPosti)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button _buttonOK; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox _textBoxNome; + private System.Windows.Forms.TextBox _textBoxNumeroTel; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.NumericUpDown _numericUpDownNumeroPosti; + private System.Windows.Forms.Button _buttonAnnulla; + } +} \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.cs b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.cs new file mode 100644 index 0000000..d814b45 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.cs @@ -0,0 +1,92 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + public partial class InserimentoPrenotazioneForm : Form + { + public InserimentoPrenotazioneForm() + { + InitializeComponent(); + + // Setto il componente per i coperti + _numericUpDownNumeroPosti.Minimum = 1; + List tavoli = LocaleRistorazione.GetInstance().Tavoli; + int maxPosti = 2; + foreach (Tavolo t in tavoli) + { + if (t.PostiMax > maxPosti) + { + maxPosti = t.PostiMax; + } + } + _numericUpDownNumeroPosti.Maximum = maxPosti; + _numericUpDownNumeroPosti.ReadOnly = true; + } + + private void _buttonOK_Click(object sender, EventArgs e) + { + if (_textBoxNome.Text == "" || _textBoxNumeroTel.Text == "" || !telefonoValido(_textBoxNumeroTel.Text)) + MessageBox.Show( + "Uno o più campi sono errati. Impossibile inserire prenotazione", + "Errore", + MessageBoxButtons.OK, + MessageBoxIcon.Warning, + MessageBoxDefaultButton.Button1); + else + { + LocaleRistorazione.GetInstance().ListaPrenotazioni.Add( + new Prenotazione(_textBoxNome.Text, _textBoxNumeroTel.Text, (int)_numericUpDownNumeroPosti.Value)); + MessageBox.Show( + "Prenotazione inserita con successo", + "Prenotazione inserita", + MessageBoxButtons.OK, + MessageBoxIcon.Information, + MessageBoxDefaultButton.Button1); + Close(); + } + } + + private Boolean telefonoValido(String telefono) + { + for (int i = 0; i < telefono.Length; i++) + { + if (i == 0) + { + if (!telefono[i].Equals('+') && !Char.IsDigit(telefono[i])) + return false; + } + else + if (!Char.IsDigit(telefono[i])) + return false; + } + return true; + } + + private void _buttonAnnulla_Click(object sender, EventArgs e) + { + Close(); + } + + public TextBox GetNomeBox + { + get { return _textBoxNome; } + } + public TextBox GetTelefonoBox + { + get { return _textBoxNumeroTel; } + } + public NumericUpDown GetCopertiBox + { + get { return _numericUpDownNumeroPosti; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.resx b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/InserimentoPrenotazioneForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/IntModifier.cs b/PrimaProvaProgetto/Presentation/IntModifier.cs new file mode 100644 index 0000000..c2081b4 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/IntModifier.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class IntModifier : NumericUpDown, IModifierControl + { + public object MyValue + { + get { return (int)Value; } + set { Value = (int)value; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/LayoutForm.Designer.cs b/PrimaProvaProgetto/Presentation/LayoutForm.Designer.cs new file mode 100644 index 0000000..ba2183a --- /dev/null +++ b/PrimaProvaProgetto/Presentation/LayoutForm.Designer.cs @@ -0,0 +1,2213 @@ +namespace PrimaProvaProgetto.Presentation +{ + partial class LayoutForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LayoutForm)); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator = new System.Windows.Forms.ToolStripSeparator(); + this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.undoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.redoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); + this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.contentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.indexToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.searchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.panel1 = new System.Windows.Forms.Panel(); + this._caricaComboBox = new System.Windows.Forms.ComboBox(); + this.label5 = new System.Windows.Forms.Label(); + this._2postiPictureBox = new System.Windows.Forms.PictureBox(); + this._confermaButton = new System.Windows.Forms.Button(); + this.label4 = new System.Windows.Forms.Label(); + this._8postiPictureBox = new System.Windows.Forms.PictureBox(); + this.label3 = new System.Windows.Forms.Label(); + this._6postiPictureBox = new System.Windows.Forms.PictureBox(); + this.label2 = new System.Windows.Forms.Label(); + this._4postiPictureBox = new System.Windows.Forms.PictureBox(); + this._indietroButton = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.panel2 = new System.Windows.Forms.Panel(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this._pictureBoxLayout11 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout12 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout13 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout14 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout15 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout16 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout17 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout18 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout19 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout21 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout22 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout23 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout24 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout25 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout26 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout27 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout28 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout29 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout31 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout32 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout33 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout34 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout35 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout36 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout37 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout38 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout39 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout41 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout42 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout43 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout44 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout45 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout46 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout47 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout48 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout49 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout51 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout52 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout53 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout54 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout55 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout56 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout57 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout58 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout59 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout61 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout62 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout63 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout64 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout65 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout66 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout67 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout68 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout69 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout71 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout72 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout73 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout74 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout75 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout76 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout77 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout78 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout79 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout81 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout82 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout83 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout84 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout85 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout86 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout87 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout88 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout89 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout91 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout92 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout93 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout94 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout95 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout96 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout97 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout98 = new System.Windows.Forms.PictureBox(); + this._pictureBoxLayout99 = new System.Windows.Forms.PictureBox(); + this.fileToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); + this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.editToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.undoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator(); + this.selectAllToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.contentsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.indexToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.searchToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator(); + this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.redoToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.pictureBox3 = new System.Windows.Forms.PictureBox(); + this.newToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.openToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.label6 = new System.Windows.Forms.Label(); + this.tableLayoutPanel1.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._2postiPictureBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._8postiPictureBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._6postiPictureBox)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._4postiPictureBox)).BeginInit(); + this.panel2.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout11)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout12)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout13)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout14)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout15)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout16)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout17)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout18)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout19)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout21)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout22)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout23)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout24)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout25)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout26)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout27)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout28)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout29)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout31)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout32)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout33)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout34)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout35)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout36)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout37)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout38)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout39)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout41)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout42)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout43)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout44)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout45)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout46)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout47)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout48)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout49)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout51)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout52)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout53)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout54)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout55)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout56)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout57)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout58)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout59)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout61)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout62)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout63)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout64)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout65)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout66)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout67)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout68)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout69)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout71)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout72)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout73)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout74)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout75)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout76)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout77)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout78)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout79)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout81)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout82)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout83)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout84)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout85)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout86)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout87)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout88)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout89)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout91)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout92)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout93)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout94)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout95)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout96)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout97)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout98)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout99)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit(); + this.SuspendLayout(); + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.newToolStripMenuItem, + this.openToolStripMenuItem, + this.toolStripSeparator, + this.saveToolStripMenuItem, + this.toolStripSeparator1, + this.toolStripSeparator2, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "&File"; + // + // newToolStripMenuItem + // + this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); + this.newToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.newToolStripMenuItem.Name = "newToolStripMenuItem"; + this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); + this.newToolStripMenuItem.Size = new System.Drawing.Size(146, 22); + this.newToolStripMenuItem.Text = "&New"; + // + // openToolStripMenuItem + // + this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); + this.openToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.openToolStripMenuItem.Name = "openToolStripMenuItem"; + this.openToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); + this.openToolStripMenuItem.Size = new System.Drawing.Size(146, 22); + this.openToolStripMenuItem.Text = "&Open"; + // + // toolStripSeparator + // + this.toolStripSeparator.Name = "toolStripSeparator"; + this.toolStripSeparator.Size = new System.Drawing.Size(143, 6); + // + // saveToolStripMenuItem + // + this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); + this.saveToolStripMenuItem.ImageTransparentColor = System.Drawing.Color.Magenta; + this.saveToolStripMenuItem.Name = "saveToolStripMenuItem"; + this.saveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); + this.saveToolStripMenuItem.Size = new System.Drawing.Size(146, 22); + this.saveToolStripMenuItem.Text = "&Save"; + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(143, 6); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(143, 6); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(146, 22); + this.exitToolStripMenuItem.Text = "E&xit"; + // + // editToolStripMenuItem + // + this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.undoToolStripMenuItem, + this.redoToolStripMenuItem, + this.toolStripSeparator3, + this.toolStripSeparator4, + this.selectAllToolStripMenuItem}); + this.editToolStripMenuItem.Name = "editToolStripMenuItem"; + this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); + this.editToolStripMenuItem.Text = "&Edit"; + // + // undoToolStripMenuItem + // + this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; + this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); + this.undoToolStripMenuItem.Size = new System.Drawing.Size(158, 22); + this.undoToolStripMenuItem.Text = "&Undo"; + // + // redoToolStripMenuItem + // + this.redoToolStripMenuItem.Name = "redoToolStripMenuItem"; + this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); + this.redoToolStripMenuItem.Size = new System.Drawing.Size(158, 22); + this.redoToolStripMenuItem.Text = "&Redo"; + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(155, 6); + // + // toolStripSeparator4 + // + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(155, 6); + // + // selectAllToolStripMenuItem + // + this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(158, 22); + this.selectAllToolStripMenuItem.Text = "Select &All Tables"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.contentsToolStripMenuItem, + this.indexToolStripMenuItem, + this.searchToolStripMenuItem, + this.toolStripSeparator5, + this.aboutToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "&Help"; + // + // contentsToolStripMenuItem + // + this.contentsToolStripMenuItem.Name = "contentsToolStripMenuItem"; + this.contentsToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.contentsToolStripMenuItem.Text = "&Contents"; + // + // indexToolStripMenuItem + // + this.indexToolStripMenuItem.Name = "indexToolStripMenuItem"; + this.indexToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.indexToolStripMenuItem.Text = "&Index"; + // + // searchToolStripMenuItem + // + this.searchToolStripMenuItem.Name = "searchToolStripMenuItem"; + this.searchToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.searchToolStripMenuItem.Text = "&Search"; + // + // toolStripSeparator5 + // + this.toolStripSeparator5.Name = "toolStripSeparator5"; + this.toolStripSeparator5.Size = new System.Drawing.Size(119, 6); + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(122, 22); + this.aboutToolStripMenuItem.Text = "&About..."; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.AllowDrop = true; + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 71.88406F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.11594F)); + this.tableLayoutPanel1.Controls.Add(this.panel1, 1, 0); + this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 0); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 1; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(904, 631); + this.tableLayoutPanel1.TabIndex = 1; + // + // panel1 + // + this.panel1.AllowDrop = true; + this.panel1.BackColor = System.Drawing.SystemColors.ButtonFace; + this.panel1.Controls.Add(this.label6); + this.panel1.Controls.Add(this._caricaComboBox); + this.panel1.Controls.Add(this.label5); + this.panel1.Controls.Add(this._2postiPictureBox); + this.panel1.Controls.Add(this._confermaButton); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this._8postiPictureBox); + this.panel1.Controls.Add(this.label3); + this.panel1.Controls.Add(this._6postiPictureBox); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this._4postiPictureBox); + this.panel1.Controls.Add(this._indietroButton); + this.panel1.Controls.Add(this.label1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(652, 3); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(249, 625); + this.panel1.TabIndex = 0; + // + // _caricaComboBox + // + this._caricaComboBox.BackColor = System.Drawing.SystemColors.ScrollBar; + this._caricaComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this._caricaComboBox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this._caricaComboBox.FormattingEnabled = true; + this._caricaComboBox.ItemHeight = 13; + this._caricaComboBox.Location = new System.Drawing.Point(112, 508); + this._caricaComboBox.Name = "_caricaComboBox"; + this._caricaComboBox.Size = new System.Drawing.Size(121, 21); + this._caricaComboBox.TabIndex = 13; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(195, 120); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(38, 13); + this.label5.TabIndex = 12; + this.label5.Text = "2 posti"; + // + // _2postiPictureBox + // + this._2postiPictureBox.Image = global::PrimaProvaProgetto.Properties.Resources._2_posti_oriz; + this._2postiPictureBox.Location = new System.Drawing.Point(60, 82); + this._2postiPictureBox.Name = "_2postiPictureBox"; + this._2postiPictureBox.Size = new System.Drawing.Size(79, 81); + this._2postiPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._2postiPictureBox.TabIndex = 11; + this._2postiPictureBox.TabStop = false; + this._2postiPictureBox.Tag = "2"; + // + // _confermaButton + // + this._confermaButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this._confermaButton.Location = new System.Drawing.Point(18, 479); + this._confermaButton.Name = "_confermaButton"; + this._confermaButton.Size = new System.Drawing.Size(79, 50); + this._confermaButton.TabIndex = 10; + this._confermaButton.Text = "Conferma Layout"; + this._confermaButton.UseVisualStyleBackColor = true; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(195, 413); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(38, 13); + this.label4.TabIndex = 7; + this.label4.Text = "8 posti"; + // + // _8postiPictureBox + // + this._8postiPictureBox.Image = global::PrimaProvaProgetto.Properties.Resources._8_posti; + this._8postiPictureBox.Location = new System.Drawing.Point(36, 369); + this._8postiPictureBox.Name = "_8postiPictureBox"; + this._8postiPictureBox.Size = new System.Drawing.Size(118, 104); + this._8postiPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._8postiPictureBox.TabIndex = 6; + this._8postiPictureBox.TabStop = false; + this._8postiPictureBox.Tag = "8"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(195, 300); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(38, 13); + this.label3.TabIndex = 5; + this.label3.Text = "6 posti"; + // + // _6postiPictureBox + // + this._6postiPictureBox.Image = global::PrimaProvaProgetto.Properties.Resources._6_posti; + this._6postiPictureBox.Location = new System.Drawing.Point(36, 277); + this._6postiPictureBox.Name = "_6postiPictureBox"; + this._6postiPictureBox.Size = new System.Drawing.Size(118, 72); + this._6postiPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._6postiPictureBox.TabIndex = 4; + this._6postiPictureBox.TabStop = false; + this._6postiPictureBox.Tag = "6"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(195, 209); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(38, 13); + this.label2.TabIndex = 3; + this.label2.Text = "4 posti"; + // + // _4postiPictureBox + // + this._4postiPictureBox.Image = global::PrimaProvaProgetto.Properties.Resources._4_posti1; + this._4postiPictureBox.Location = new System.Drawing.Point(36, 178); + this._4postiPictureBox.Name = "_4postiPictureBox"; + this._4postiPictureBox.Size = new System.Drawing.Size(118, 76); + this._4postiPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._4postiPictureBox.TabIndex = 2; + this._4postiPictureBox.TabStop = false; + this._4postiPictureBox.Tag = "4"; + // + // _indietroButton + // + this._indietroButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this._indietroButton.Location = new System.Drawing.Point(49, 534); + this._indietroButton.Margin = new System.Windows.Forms.Padding(2); + this._indietroButton.Name = "_indietroButton"; + this._indietroButton.Size = new System.Drawing.Size(163, 44); + this._indietroButton.TabIndex = 1; + this._indietroButton.Text = "Indietro"; + this._indietroButton.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(14, 5); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(227, 23); + this.label1.TabIndex = 0; + this.label1.Text = "Selezionare un tavolo:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; + // + // panel2 + // + this.panel2.AllowDrop = true; + this.panel2.Controls.Add(this.tableLayoutPanel2); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(3, 3); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(643, 625); + this.panel2.TabIndex = 1; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.AllowDrop = true; + this.tableLayoutPanel2.BackgroundImage = global::PrimaProvaProgetto.Properties.Resources.Wood_Floor_install; + this.tableLayoutPanel2.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Outset; + this.tableLayoutPanel2.ColumnCount = 9; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.1137F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 11.1137F)); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout11, 0, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout12, 1, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout13, 2, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout14, 3, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout15, 4, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout16, 5, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout17, 6, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout18, 7, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout19, 8, 0); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout21, 0, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout22, 1, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout23, 2, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout24, 3, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout25, 4, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout26, 5, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout27, 6, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout28, 7, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout29, 8, 1); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout31, 0, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout32, 1, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout33, 2, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout34, 3, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout35, 4, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout36, 5, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout37, 6, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout38, 7, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout39, 8, 2); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout41, 0, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout42, 1, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout43, 2, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout44, 3, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout45, 4, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout46, 5, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout47, 6, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout48, 7, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout49, 8, 3); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout51, 0, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout52, 1, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout53, 2, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout54, 3, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout55, 4, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout56, 5, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout57, 6, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout58, 7, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout59, 8, 4); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout61, 0, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout62, 1, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout63, 2, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout64, 3, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout65, 4, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout66, 5, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout67, 6, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout68, 7, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout69, 8, 5); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout71, 0, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout72, 1, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout73, 2, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout74, 3, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout75, 4, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout76, 5, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout77, 6, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout78, 7, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout79, 8, 6); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout81, 0, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout82, 1, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout83, 2, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout84, 3, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout85, 4, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout86, 5, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout87, 6, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout88, 7, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout89, 8, 7); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout91, 0, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout92, 1, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout93, 2, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout94, 3, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout95, 4, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout96, 5, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout97, 6, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout98, 7, 8); + this.tableLayoutPanel2.Controls.Add(this._pictureBoxLayout99, 8, 8); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 9; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11037F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11259F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11259F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11259F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(643, 625); + this.tableLayoutPanel2.TabIndex = 0; + // + // _pictureBoxLayout11 + // + this._pictureBoxLayout11.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout11.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout11.Location = new System.Drawing.Point(5, 5); + this._pictureBoxLayout11.Name = "_pictureBoxLayout11"; + this._pictureBoxLayout11.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout11.TabIndex = 0; + this._pictureBoxLayout11.TabStop = false; + this._pictureBoxLayout11.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout11.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout11.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout12 + // + this._pictureBoxLayout12.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout12.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout12.Location = new System.Drawing.Point(76, 5); + this._pictureBoxLayout12.Name = "_pictureBoxLayout12"; + this._pictureBoxLayout12.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout12.TabIndex = 1; + this._pictureBoxLayout12.TabStop = false; + this._pictureBoxLayout12.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout12.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout12.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout13 + // + this._pictureBoxLayout13.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout13.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout13.Location = new System.Drawing.Point(147, 5); + this._pictureBoxLayout13.Name = "_pictureBoxLayout13"; + this._pictureBoxLayout13.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout13.TabIndex = 2; + this._pictureBoxLayout13.TabStop = false; + // + // _pictureBoxLayout14 + // + this._pictureBoxLayout14.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout14.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout14.Location = new System.Drawing.Point(218, 5); + this._pictureBoxLayout14.Name = "_pictureBoxLayout14"; + this._pictureBoxLayout14.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout14.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout14.TabIndex = 3; + this._pictureBoxLayout14.TabStop = false; + // + // _pictureBoxLayout15 + // + this._pictureBoxLayout15.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout15.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout15.Location = new System.Drawing.Point(289, 5); + this._pictureBoxLayout15.Name = "_pictureBoxLayout15"; + this._pictureBoxLayout15.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout15.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout15.TabIndex = 4; + this._pictureBoxLayout15.TabStop = false; + // + // _pictureBoxLayout16 + // + this._pictureBoxLayout16.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout16.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout16.Location = new System.Drawing.Point(360, 5); + this._pictureBoxLayout16.Name = "_pictureBoxLayout16"; + this._pictureBoxLayout16.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout16.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout16.TabIndex = 5; + this._pictureBoxLayout16.TabStop = false; + // + // _pictureBoxLayout17 + // + this._pictureBoxLayout17.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout17.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout17.Location = new System.Drawing.Point(431, 5); + this._pictureBoxLayout17.Name = "_pictureBoxLayout17"; + this._pictureBoxLayout17.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout17.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout17.TabIndex = 6; + this._pictureBoxLayout17.TabStop = false; + // + // _pictureBoxLayout18 + // + this._pictureBoxLayout18.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout18.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout18.Location = new System.Drawing.Point(502, 5); + this._pictureBoxLayout18.Name = "_pictureBoxLayout18"; + this._pictureBoxLayout18.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout18.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout18.TabIndex = 7; + this._pictureBoxLayout18.TabStop = false; + // + // _pictureBoxLayout19 + // + this._pictureBoxLayout19.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout19.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout19.Location = new System.Drawing.Point(573, 5); + this._pictureBoxLayout19.Name = "_pictureBoxLayout19"; + this._pictureBoxLayout19.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout19.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout19.TabIndex = 8; + this._pictureBoxLayout19.TabStop = false; + // + // _pictureBoxLayout21 + // + this._pictureBoxLayout21.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout21.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout21.Location = new System.Drawing.Point(5, 74); + this._pictureBoxLayout21.Name = "_pictureBoxLayout21"; + this._pictureBoxLayout21.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout21.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout21.TabIndex = 9; + this._pictureBoxLayout21.TabStop = false; + this._pictureBoxLayout21.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout21.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout21.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout22 + // + this._pictureBoxLayout22.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout22.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout22.Location = new System.Drawing.Point(76, 74); + this._pictureBoxLayout22.Name = "_pictureBoxLayout22"; + this._pictureBoxLayout22.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout22.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout22.TabIndex = 10; + this._pictureBoxLayout22.TabStop = false; + this._pictureBoxLayout22.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout22.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout22.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout23 + // + this._pictureBoxLayout23.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout23.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout23.Location = new System.Drawing.Point(147, 74); + this._pictureBoxLayout23.Name = "_pictureBoxLayout23"; + this._pictureBoxLayout23.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout23.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout23.TabIndex = 11; + this._pictureBoxLayout23.TabStop = false; + this._pictureBoxLayout23.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout23.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout23.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout24 + // + this._pictureBoxLayout24.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout24.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout24.Location = new System.Drawing.Point(218, 74); + this._pictureBoxLayout24.Name = "_pictureBoxLayout24"; + this._pictureBoxLayout24.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout24.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout24.TabIndex = 12; + this._pictureBoxLayout24.TabStop = false; + this._pictureBoxLayout24.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout24.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout24.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout25 + // + this._pictureBoxLayout25.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout25.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout25.Location = new System.Drawing.Point(289, 74); + this._pictureBoxLayout25.Name = "_pictureBoxLayout25"; + this._pictureBoxLayout25.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout25.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout25.TabIndex = 13; + this._pictureBoxLayout25.TabStop = false; + this._pictureBoxLayout25.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout25.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout25.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout26 + // + this._pictureBoxLayout26.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout26.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout26.Location = new System.Drawing.Point(360, 74); + this._pictureBoxLayout26.Name = "_pictureBoxLayout26"; + this._pictureBoxLayout26.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout26.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout26.TabIndex = 14; + this._pictureBoxLayout26.TabStop = false; + this._pictureBoxLayout26.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout26.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout26.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout27 + // + this._pictureBoxLayout27.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout27.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout27.Location = new System.Drawing.Point(431, 74); + this._pictureBoxLayout27.Name = "_pictureBoxLayout27"; + this._pictureBoxLayout27.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout27.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout27.TabIndex = 15; + this._pictureBoxLayout27.TabStop = false; + this._pictureBoxLayout27.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout27.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout27.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout28 + // + this._pictureBoxLayout28.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout28.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout28.Location = new System.Drawing.Point(502, 74); + this._pictureBoxLayout28.Name = "_pictureBoxLayout28"; + this._pictureBoxLayout28.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout28.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout28.TabIndex = 16; + this._pictureBoxLayout28.TabStop = false; + this._pictureBoxLayout28.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout28.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout28.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout29 + // + this._pictureBoxLayout29.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout29.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout29.Location = new System.Drawing.Point(573, 74); + this._pictureBoxLayout29.Name = "_pictureBoxLayout29"; + this._pictureBoxLayout29.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout29.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout29.TabIndex = 17; + this._pictureBoxLayout29.TabStop = false; + this._pictureBoxLayout29.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout29.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout29.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout31 + // + this._pictureBoxLayout31.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout31.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout31.Location = new System.Drawing.Point(5, 143); + this._pictureBoxLayout31.Name = "_pictureBoxLayout31"; + this._pictureBoxLayout31.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout31.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout31.TabIndex = 18; + this._pictureBoxLayout31.TabStop = false; + this._pictureBoxLayout31.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout31.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout31.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout32 + // + this._pictureBoxLayout32.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout32.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout32.Location = new System.Drawing.Point(76, 143); + this._pictureBoxLayout32.Name = "_pictureBoxLayout32"; + this._pictureBoxLayout32.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout32.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout32.TabIndex = 19; + this._pictureBoxLayout32.TabStop = false; + this._pictureBoxLayout32.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout32.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout32.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout33 + // + this._pictureBoxLayout33.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout33.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout33.Location = new System.Drawing.Point(147, 143); + this._pictureBoxLayout33.Name = "_pictureBoxLayout33"; + this._pictureBoxLayout33.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout33.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout33.TabIndex = 20; + this._pictureBoxLayout33.TabStop = false; + this._pictureBoxLayout33.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout33.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout33.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout34 + // + this._pictureBoxLayout34.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout34.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout34.Location = new System.Drawing.Point(218, 143); + this._pictureBoxLayout34.Name = "_pictureBoxLayout34"; + this._pictureBoxLayout34.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout34.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout34.TabIndex = 21; + this._pictureBoxLayout34.TabStop = false; + this._pictureBoxLayout34.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout34.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout34.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout35 + // + this._pictureBoxLayout35.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout35.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout35.Location = new System.Drawing.Point(289, 143); + this._pictureBoxLayout35.Name = "_pictureBoxLayout35"; + this._pictureBoxLayout35.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout35.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout35.TabIndex = 22; + this._pictureBoxLayout35.TabStop = false; + this._pictureBoxLayout35.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout35.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout35.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout36 + // + this._pictureBoxLayout36.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout36.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout36.Location = new System.Drawing.Point(360, 143); + this._pictureBoxLayout36.Name = "_pictureBoxLayout36"; + this._pictureBoxLayout36.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout36.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout36.TabIndex = 23; + this._pictureBoxLayout36.TabStop = false; + this._pictureBoxLayout36.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout36.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout36.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout37 + // + this._pictureBoxLayout37.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout37.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout37.Location = new System.Drawing.Point(431, 143); + this._pictureBoxLayout37.Name = "_pictureBoxLayout37"; + this._pictureBoxLayout37.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout37.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout37.TabIndex = 24; + this._pictureBoxLayout37.TabStop = false; + this._pictureBoxLayout37.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout37.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout37.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout38 + // + this._pictureBoxLayout38.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout38.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout38.Location = new System.Drawing.Point(502, 143); + this._pictureBoxLayout38.Name = "_pictureBoxLayout38"; + this._pictureBoxLayout38.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout38.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout38.TabIndex = 25; + this._pictureBoxLayout38.TabStop = false; + this._pictureBoxLayout38.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout38.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout38.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout39 + // + this._pictureBoxLayout39.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout39.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout39.Location = new System.Drawing.Point(573, 143); + this._pictureBoxLayout39.Name = "_pictureBoxLayout39"; + this._pictureBoxLayout39.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout39.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout39.TabIndex = 26; + this._pictureBoxLayout39.TabStop = false; + this._pictureBoxLayout39.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout39.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout39.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout41 + // + this._pictureBoxLayout41.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout41.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout41.Location = new System.Drawing.Point(5, 212); + this._pictureBoxLayout41.Name = "_pictureBoxLayout41"; + this._pictureBoxLayout41.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout41.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout41.TabIndex = 27; + this._pictureBoxLayout41.TabStop = false; + this._pictureBoxLayout41.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout41.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout41.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout42 + // + this._pictureBoxLayout42.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout42.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout42.Location = new System.Drawing.Point(76, 212); + this._pictureBoxLayout42.Name = "_pictureBoxLayout42"; + this._pictureBoxLayout42.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout42.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout42.TabIndex = 28; + this._pictureBoxLayout42.TabStop = false; + this._pictureBoxLayout42.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout42.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout42.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout43 + // + this._pictureBoxLayout43.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout43.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout43.Location = new System.Drawing.Point(147, 212); + this._pictureBoxLayout43.Name = "_pictureBoxLayout43"; + this._pictureBoxLayout43.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout43.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout43.TabIndex = 29; + this._pictureBoxLayout43.TabStop = false; + this._pictureBoxLayout43.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout43.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout43.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout44 + // + this._pictureBoxLayout44.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout44.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout44.Location = new System.Drawing.Point(218, 212); + this._pictureBoxLayout44.Name = "_pictureBoxLayout44"; + this._pictureBoxLayout44.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout44.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout44.TabIndex = 30; + this._pictureBoxLayout44.TabStop = false; + this._pictureBoxLayout44.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout44.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout44.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout45 + // + this._pictureBoxLayout45.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout45.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout45.Location = new System.Drawing.Point(289, 212); + this._pictureBoxLayout45.Name = "_pictureBoxLayout45"; + this._pictureBoxLayout45.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout45.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout45.TabIndex = 31; + this._pictureBoxLayout45.TabStop = false; + this._pictureBoxLayout45.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout45.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout45.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout46 + // + this._pictureBoxLayout46.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout46.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout46.Location = new System.Drawing.Point(360, 212); + this._pictureBoxLayout46.Name = "_pictureBoxLayout46"; + this._pictureBoxLayout46.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout46.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout46.TabIndex = 32; + this._pictureBoxLayout46.TabStop = false; + this._pictureBoxLayout46.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout46.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout46.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout47 + // + this._pictureBoxLayout47.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout47.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout47.Location = new System.Drawing.Point(431, 212); + this._pictureBoxLayout47.Name = "_pictureBoxLayout47"; + this._pictureBoxLayout47.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout47.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout47.TabIndex = 33; + this._pictureBoxLayout47.TabStop = false; + this._pictureBoxLayout47.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout47.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout47.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout48 + // + this._pictureBoxLayout48.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout48.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout48.Location = new System.Drawing.Point(502, 212); + this._pictureBoxLayout48.Name = "_pictureBoxLayout48"; + this._pictureBoxLayout48.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout48.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout48.TabIndex = 34; + this._pictureBoxLayout48.TabStop = false; + this._pictureBoxLayout48.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout48.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout48.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout49 + // + this._pictureBoxLayout49.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout49.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout49.Location = new System.Drawing.Point(573, 212); + this._pictureBoxLayout49.Name = "_pictureBoxLayout49"; + this._pictureBoxLayout49.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout49.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout49.TabIndex = 35; + this._pictureBoxLayout49.TabStop = false; + this._pictureBoxLayout49.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout49.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout49.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout51 + // + this._pictureBoxLayout51.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout51.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout51.Location = new System.Drawing.Point(5, 281); + this._pictureBoxLayout51.Name = "_pictureBoxLayout51"; + this._pictureBoxLayout51.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout51.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout51.TabIndex = 36; + this._pictureBoxLayout51.TabStop = false; + this._pictureBoxLayout51.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout51.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout51.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout52 + // + this._pictureBoxLayout52.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout52.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout52.Location = new System.Drawing.Point(76, 281); + this._pictureBoxLayout52.Name = "_pictureBoxLayout52"; + this._pictureBoxLayout52.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout52.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout52.TabIndex = 37; + this._pictureBoxLayout52.TabStop = false; + this._pictureBoxLayout52.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout52.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout52.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout53 + // + this._pictureBoxLayout53.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout53.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout53.Location = new System.Drawing.Point(147, 281); + this._pictureBoxLayout53.Name = "_pictureBoxLayout53"; + this._pictureBoxLayout53.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout53.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout53.TabIndex = 38; + this._pictureBoxLayout53.TabStop = false; + this._pictureBoxLayout53.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout53.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout53.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout54 + // + this._pictureBoxLayout54.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout54.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout54.Location = new System.Drawing.Point(218, 281); + this._pictureBoxLayout54.Name = "_pictureBoxLayout54"; + this._pictureBoxLayout54.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout54.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout54.TabIndex = 39; + this._pictureBoxLayout54.TabStop = false; + this._pictureBoxLayout54.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout54.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout54.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout55 + // + this._pictureBoxLayout55.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout55.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout55.Location = new System.Drawing.Point(289, 281); + this._pictureBoxLayout55.Name = "_pictureBoxLayout55"; + this._pictureBoxLayout55.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout55.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout55.TabIndex = 40; + this._pictureBoxLayout55.TabStop = false; + this._pictureBoxLayout55.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout55.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout55.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout56 + // + this._pictureBoxLayout56.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout56.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout56.Location = new System.Drawing.Point(360, 281); + this._pictureBoxLayout56.Name = "_pictureBoxLayout56"; + this._pictureBoxLayout56.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout56.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout56.TabIndex = 41; + this._pictureBoxLayout56.TabStop = false; + this._pictureBoxLayout56.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout56.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout56.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout57 + // + this._pictureBoxLayout57.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout57.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout57.Location = new System.Drawing.Point(431, 281); + this._pictureBoxLayout57.Name = "_pictureBoxLayout57"; + this._pictureBoxLayout57.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout57.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout57.TabIndex = 42; + this._pictureBoxLayout57.TabStop = false; + this._pictureBoxLayout57.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout57.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout57.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout58 + // + this._pictureBoxLayout58.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout58.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout58.Location = new System.Drawing.Point(502, 281); + this._pictureBoxLayout58.Name = "_pictureBoxLayout58"; + this._pictureBoxLayout58.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout58.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout58.TabIndex = 43; + this._pictureBoxLayout58.TabStop = false; + this._pictureBoxLayout58.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout58.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout58.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout59 + // + this._pictureBoxLayout59.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout59.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout59.Location = new System.Drawing.Point(573, 281); + this._pictureBoxLayout59.Name = "_pictureBoxLayout59"; + this._pictureBoxLayout59.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout59.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout59.TabIndex = 44; + this._pictureBoxLayout59.TabStop = false; + this._pictureBoxLayout59.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout59.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout59.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout61 + // + this._pictureBoxLayout61.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout61.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout61.Location = new System.Drawing.Point(5, 350); + this._pictureBoxLayout61.Name = "_pictureBoxLayout61"; + this._pictureBoxLayout61.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout61.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout61.TabIndex = 45; + this._pictureBoxLayout61.TabStop = false; + this._pictureBoxLayout61.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout61.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout61.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout62 + // + this._pictureBoxLayout62.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout62.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout62.Location = new System.Drawing.Point(76, 350); + this._pictureBoxLayout62.Name = "_pictureBoxLayout62"; + this._pictureBoxLayout62.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout62.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout62.TabIndex = 46; + this._pictureBoxLayout62.TabStop = false; + this._pictureBoxLayout62.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout62.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout62.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout63 + // + this._pictureBoxLayout63.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout63.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout63.Location = new System.Drawing.Point(147, 350); + this._pictureBoxLayout63.Name = "_pictureBoxLayout63"; + this._pictureBoxLayout63.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout63.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout63.TabIndex = 47; + this._pictureBoxLayout63.TabStop = false; + this._pictureBoxLayout63.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout63.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout63.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout64 + // + this._pictureBoxLayout64.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout64.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout64.Location = new System.Drawing.Point(218, 350); + this._pictureBoxLayout64.Name = "_pictureBoxLayout64"; + this._pictureBoxLayout64.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout64.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout64.TabIndex = 48; + this._pictureBoxLayout64.TabStop = false; + this._pictureBoxLayout64.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout64.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout64.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout65 + // + this._pictureBoxLayout65.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout65.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout65.Location = new System.Drawing.Point(289, 350); + this._pictureBoxLayout65.Name = "_pictureBoxLayout65"; + this._pictureBoxLayout65.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout65.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout65.TabIndex = 49; + this._pictureBoxLayout65.TabStop = false; + this._pictureBoxLayout65.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout65.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout65.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout66 + // + this._pictureBoxLayout66.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout66.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout66.Location = new System.Drawing.Point(360, 350); + this._pictureBoxLayout66.Name = "_pictureBoxLayout66"; + this._pictureBoxLayout66.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout66.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout66.TabIndex = 50; + this._pictureBoxLayout66.TabStop = false; + this._pictureBoxLayout66.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout66.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout66.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout67 + // + this._pictureBoxLayout67.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout67.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout67.Location = new System.Drawing.Point(431, 350); + this._pictureBoxLayout67.Name = "_pictureBoxLayout67"; + this._pictureBoxLayout67.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout67.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout67.TabIndex = 51; + this._pictureBoxLayout67.TabStop = false; + this._pictureBoxLayout67.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout67.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout67.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout68 + // + this._pictureBoxLayout68.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout68.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout68.Location = new System.Drawing.Point(502, 350); + this._pictureBoxLayout68.Name = "_pictureBoxLayout68"; + this._pictureBoxLayout68.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout68.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout68.TabIndex = 52; + this._pictureBoxLayout68.TabStop = false; + this._pictureBoxLayout68.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout68.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout68.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout69 + // + this._pictureBoxLayout69.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout69.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout69.Location = new System.Drawing.Point(573, 350); + this._pictureBoxLayout69.Name = "_pictureBoxLayout69"; + this._pictureBoxLayout69.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout69.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout69.TabIndex = 53; + this._pictureBoxLayout69.TabStop = false; + this._pictureBoxLayout69.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout69.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout69.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout71 + // + this._pictureBoxLayout71.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout71.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout71.Location = new System.Drawing.Point(5, 419); + this._pictureBoxLayout71.Name = "_pictureBoxLayout71"; + this._pictureBoxLayout71.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout71.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout71.TabIndex = 54; + this._pictureBoxLayout71.TabStop = false; + this._pictureBoxLayout71.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout71.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout71.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout72 + // + this._pictureBoxLayout72.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout72.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout72.Location = new System.Drawing.Point(76, 419); + this._pictureBoxLayout72.Name = "_pictureBoxLayout72"; + this._pictureBoxLayout72.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout72.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout72.TabIndex = 55; + this._pictureBoxLayout72.TabStop = false; + this._pictureBoxLayout72.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout72.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout72.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout73 + // + this._pictureBoxLayout73.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout73.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout73.Location = new System.Drawing.Point(147, 419); + this._pictureBoxLayout73.Name = "_pictureBoxLayout73"; + this._pictureBoxLayout73.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout73.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout73.TabIndex = 56; + this._pictureBoxLayout73.TabStop = false; + this._pictureBoxLayout73.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout73.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout73.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout74 + // + this._pictureBoxLayout74.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout74.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout74.Location = new System.Drawing.Point(218, 419); + this._pictureBoxLayout74.Name = "_pictureBoxLayout74"; + this._pictureBoxLayout74.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout74.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout74.TabIndex = 57; + this._pictureBoxLayout74.TabStop = false; + this._pictureBoxLayout74.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout74.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout74.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout75 + // + this._pictureBoxLayout75.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout75.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout75.Location = new System.Drawing.Point(289, 419); + this._pictureBoxLayout75.Name = "_pictureBoxLayout75"; + this._pictureBoxLayout75.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout75.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout75.TabIndex = 58; + this._pictureBoxLayout75.TabStop = false; + this._pictureBoxLayout75.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout75.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout75.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout76 + // + this._pictureBoxLayout76.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout76.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout76.Location = new System.Drawing.Point(360, 419); + this._pictureBoxLayout76.Name = "_pictureBoxLayout76"; + this._pictureBoxLayout76.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout76.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout76.TabIndex = 59; + this._pictureBoxLayout76.TabStop = false; + this._pictureBoxLayout76.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout76.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout76.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout77 + // + this._pictureBoxLayout77.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout77.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout77.Location = new System.Drawing.Point(431, 419); + this._pictureBoxLayout77.Name = "_pictureBoxLayout77"; + this._pictureBoxLayout77.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout77.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout77.TabIndex = 60; + this._pictureBoxLayout77.TabStop = false; + this._pictureBoxLayout77.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout77.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout77.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout78 + // + this._pictureBoxLayout78.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout78.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout78.Location = new System.Drawing.Point(502, 419); + this._pictureBoxLayout78.Name = "_pictureBoxLayout78"; + this._pictureBoxLayout78.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout78.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout78.TabIndex = 61; + this._pictureBoxLayout78.TabStop = false; + this._pictureBoxLayout78.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout78.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout78.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout79 + // + this._pictureBoxLayout79.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout79.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout79.Location = new System.Drawing.Point(573, 419); + this._pictureBoxLayout79.Name = "_pictureBoxLayout79"; + this._pictureBoxLayout79.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout79.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout79.TabIndex = 62; + this._pictureBoxLayout79.TabStop = false; + this._pictureBoxLayout79.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout79.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout79.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout81 + // + this._pictureBoxLayout81.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout81.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout81.Location = new System.Drawing.Point(5, 488); + this._pictureBoxLayout81.Name = "_pictureBoxLayout81"; + this._pictureBoxLayout81.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout81.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout81.TabIndex = 63; + this._pictureBoxLayout81.TabStop = false; + this._pictureBoxLayout81.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout81.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout81.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout82 + // + this._pictureBoxLayout82.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout82.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout82.Location = new System.Drawing.Point(76, 488); + this._pictureBoxLayout82.Name = "_pictureBoxLayout82"; + this._pictureBoxLayout82.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout82.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout82.TabIndex = 64; + this._pictureBoxLayout82.TabStop = false; + this._pictureBoxLayout82.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout82.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout82.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout83 + // + this._pictureBoxLayout83.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout83.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout83.Location = new System.Drawing.Point(147, 488); + this._pictureBoxLayout83.Name = "_pictureBoxLayout83"; + this._pictureBoxLayout83.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout83.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout83.TabIndex = 65; + this._pictureBoxLayout83.TabStop = false; + this._pictureBoxLayout83.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout83.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout83.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout84 + // + this._pictureBoxLayout84.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout84.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout84.Location = new System.Drawing.Point(218, 488); + this._pictureBoxLayout84.Name = "_pictureBoxLayout84"; + this._pictureBoxLayout84.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout84.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout84.TabIndex = 66; + this._pictureBoxLayout84.TabStop = false; + this._pictureBoxLayout84.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout84.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout84.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout85 + // + this._pictureBoxLayout85.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout85.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout85.Location = new System.Drawing.Point(289, 488); + this._pictureBoxLayout85.Name = "_pictureBoxLayout85"; + this._pictureBoxLayout85.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout85.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout85.TabIndex = 67; + this._pictureBoxLayout85.TabStop = false; + this._pictureBoxLayout85.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout85.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout85.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout86 + // + this._pictureBoxLayout86.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout86.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout86.Location = new System.Drawing.Point(360, 488); + this._pictureBoxLayout86.Name = "_pictureBoxLayout86"; + this._pictureBoxLayout86.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout86.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout86.TabIndex = 68; + this._pictureBoxLayout86.TabStop = false; + this._pictureBoxLayout86.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout86.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout86.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout87 + // + this._pictureBoxLayout87.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout87.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout87.Location = new System.Drawing.Point(431, 488); + this._pictureBoxLayout87.Name = "_pictureBoxLayout87"; + this._pictureBoxLayout87.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout87.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout87.TabIndex = 69; + this._pictureBoxLayout87.TabStop = false; + this._pictureBoxLayout87.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout87.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout87.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout88 + // + this._pictureBoxLayout88.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout88.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout88.Location = new System.Drawing.Point(502, 488); + this._pictureBoxLayout88.Name = "_pictureBoxLayout88"; + this._pictureBoxLayout88.Size = new System.Drawing.Size(63, 61); + this._pictureBoxLayout88.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout88.TabIndex = 70; + this._pictureBoxLayout88.TabStop = false; + this._pictureBoxLayout88.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout88.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout88.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout89 + // + this._pictureBoxLayout89.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout89.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout89.Location = new System.Drawing.Point(573, 488); + this._pictureBoxLayout89.Name = "_pictureBoxLayout89"; + this._pictureBoxLayout89.Size = new System.Drawing.Size(65, 61); + this._pictureBoxLayout89.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout89.TabIndex = 71; + this._pictureBoxLayout89.TabStop = false; + this._pictureBoxLayout89.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout89.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout89.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout91 + // + this._pictureBoxLayout91.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout91.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout91.Location = new System.Drawing.Point(5, 557); + this._pictureBoxLayout91.Name = "_pictureBoxLayout91"; + this._pictureBoxLayout91.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout91.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout91.TabIndex = 72; + this._pictureBoxLayout91.TabStop = false; + this._pictureBoxLayout91.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout91.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout91.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout92 + // + this._pictureBoxLayout92.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout92.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout92.Location = new System.Drawing.Point(76, 557); + this._pictureBoxLayout92.Name = "_pictureBoxLayout92"; + this._pictureBoxLayout92.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout92.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout92.TabIndex = 73; + this._pictureBoxLayout92.TabStop = false; + this._pictureBoxLayout92.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout92.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout92.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout93 + // + this._pictureBoxLayout93.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout93.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout93.Location = new System.Drawing.Point(147, 557); + this._pictureBoxLayout93.Name = "_pictureBoxLayout93"; + this._pictureBoxLayout93.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout93.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout93.TabIndex = 74; + this._pictureBoxLayout93.TabStop = false; + this._pictureBoxLayout93.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout93.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout93.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout94 + // + this._pictureBoxLayout94.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout94.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout94.Location = new System.Drawing.Point(218, 557); + this._pictureBoxLayout94.Name = "_pictureBoxLayout94"; + this._pictureBoxLayout94.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout94.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout94.TabIndex = 75; + this._pictureBoxLayout94.TabStop = false; + this._pictureBoxLayout94.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout94.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout94.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout95 + // + this._pictureBoxLayout95.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout95.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout95.Location = new System.Drawing.Point(289, 557); + this._pictureBoxLayout95.Name = "_pictureBoxLayout95"; + this._pictureBoxLayout95.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout95.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout95.TabIndex = 76; + this._pictureBoxLayout95.TabStop = false; + this._pictureBoxLayout95.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout95.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout95.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout96 + // + this._pictureBoxLayout96.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout96.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout96.Location = new System.Drawing.Point(360, 557); + this._pictureBoxLayout96.Name = "_pictureBoxLayout96"; + this._pictureBoxLayout96.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout96.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout96.TabIndex = 77; + this._pictureBoxLayout96.TabStop = false; + this._pictureBoxLayout96.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout96.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout96.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout97 + // + this._pictureBoxLayout97.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout97.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout97.Location = new System.Drawing.Point(431, 557); + this._pictureBoxLayout97.Name = "_pictureBoxLayout97"; + this._pictureBoxLayout97.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout97.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout97.TabIndex = 78; + this._pictureBoxLayout97.TabStop = false; + this._pictureBoxLayout97.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout97.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout97.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout98 + // + this._pictureBoxLayout98.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout98.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout98.Location = new System.Drawing.Point(502, 557); + this._pictureBoxLayout98.Name = "_pictureBoxLayout98"; + this._pictureBoxLayout98.Size = new System.Drawing.Size(63, 63); + this._pictureBoxLayout98.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout98.TabIndex = 79; + this._pictureBoxLayout98.TabStop = false; + this._pictureBoxLayout98.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout98.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout98.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // _pictureBoxLayout99 + // + this._pictureBoxLayout99.BackColor = System.Drawing.Color.Transparent; + this._pictureBoxLayout99.Dock = System.Windows.Forms.DockStyle.Fill; + this._pictureBoxLayout99.Location = new System.Drawing.Point(573, 557); + this._pictureBoxLayout99.Name = "_pictureBoxLayout99"; + this._pictureBoxLayout99.Size = new System.Drawing.Size(65, 63); + this._pictureBoxLayout99.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this._pictureBoxLayout99.TabIndex = 80; + this._pictureBoxLayout99.TabStop = false; + this._pictureBoxLayout99.DragDrop += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragDrop); + this._pictureBoxLayout99.DragEnter += new System.Windows.Forms.DragEventHandler(this._pictureBoxLayout11_DragEnter); + this._pictureBoxLayout99.MouseDown += new System.Windows.Forms.MouseEventHandler(this._pictureBoxLayout11_MouseDown); + // + // fileToolStripMenuItem1 + // + this.fileToolStripMenuItem1.Name = "fileToolStripMenuItem1"; + this.fileToolStripMenuItem1.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem1.Text = "&File"; + // + // toolStripSeparator6 + // + this.toolStripSeparator6.Name = "toolStripSeparator6"; + this.toolStripSeparator6.Size = new System.Drawing.Size(149, 6); + // + // toolStripSeparator7 + // + this.toolStripSeparator7.Name = "toolStripSeparator7"; + this.toolStripSeparator7.Size = new System.Drawing.Size(149, 6); + // + // toolStripSeparator8 + // + this.toolStripSeparator8.Name = "toolStripSeparator8"; + this.toolStripSeparator8.Size = new System.Drawing.Size(149, 6); + // + // exitToolStripMenuItem1 + // + this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1"; + this.exitToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.exitToolStripMenuItem1.Text = "E&xit"; + // + // editToolStripMenuItem1 + // + this.editToolStripMenuItem1.Name = "editToolStripMenuItem1"; + this.editToolStripMenuItem1.Size = new System.Drawing.Size(39, 20); + this.editToolStripMenuItem1.Text = "&Edit"; + // + // undoToolStripMenuItem1 + // + this.undoToolStripMenuItem1.Name = "undoToolStripMenuItem1"; + this.undoToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.undoToolStripMenuItem1.Text = "&Undo"; + // + // toolStripSeparator9 + // + this.toolStripSeparator9.Name = "toolStripSeparator9"; + this.toolStripSeparator9.Size = new System.Drawing.Size(149, 6); + // + // toolStripSeparator10 + // + this.toolStripSeparator10.Name = "toolStripSeparator10"; + this.toolStripSeparator10.Size = new System.Drawing.Size(149, 6); + // + // selectAllToolStripMenuItem1 + // + this.selectAllToolStripMenuItem1.Name = "selectAllToolStripMenuItem1"; + this.selectAllToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.selectAllToolStripMenuItem1.Text = "Select &All"; + // + // helpToolStripMenuItem1 + // + this.helpToolStripMenuItem1.Name = "helpToolStripMenuItem1"; + this.helpToolStripMenuItem1.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem1.Text = "&Help"; + // + // contentsToolStripMenuItem1 + // + this.contentsToolStripMenuItem1.Name = "contentsToolStripMenuItem1"; + this.contentsToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.contentsToolStripMenuItem1.Text = "&Contents"; + // + // indexToolStripMenuItem1 + // + this.indexToolStripMenuItem1.Name = "indexToolStripMenuItem1"; + this.indexToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.indexToolStripMenuItem1.Text = "&Index"; + // + // searchToolStripMenuItem1 + // + this.searchToolStripMenuItem1.Name = "searchToolStripMenuItem1"; + this.searchToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.searchToolStripMenuItem1.Text = "&Search"; + // + // toolStripSeparator11 + // + this.toolStripSeparator11.Name = "toolStripSeparator11"; + this.toolStripSeparator11.Size = new System.Drawing.Size(149, 6); + // + // aboutToolStripMenuItem1 + // + this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1"; + this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.aboutToolStripMenuItem1.Text = "&About..."; + // + // redoToolStripMenuItem1 + // + this.redoToolStripMenuItem1.Name = "redoToolStripMenuItem1"; + this.redoToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.redoToolStripMenuItem1.Text = "&Redo"; + // + // pictureBox1 + // + this.pictureBox1.Image = global::PrimaProvaProgetto.Properties.Resources._4_posti1; + this.pictureBox1.Location = new System.Drawing.Point(0, 170); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(118, 76); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 2; + this.pictureBox1.TabStop = false; + // + // pictureBox3 + // + this.pictureBox3.Image = global::PrimaProvaProgetto.Properties.Resources._8_posti; + this.pictureBox3.Location = new System.Drawing.Point(3, 374); + this.pictureBox3.Name = "pictureBox3"; + this.pictureBox3.Size = new System.Drawing.Size(118, 104); + this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox3.TabIndex = 6; + this.pictureBox3.TabStop = false; + // + // newToolStripMenuItem1 + // + this.newToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem1.Image"))); + this.newToolStripMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.newToolStripMenuItem1.Name = "newToolStripMenuItem1"; + this.newToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.newToolStripMenuItem1.Text = "&New"; + // + // openToolStripMenuItem1 + // + this.openToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem1.Image"))); + this.openToolStripMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.openToolStripMenuItem1.Name = "openToolStripMenuItem1"; + this.openToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.openToolStripMenuItem1.Text = "&Open"; + // + // saveToolStripMenuItem1 + // + this.saveToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem1.Image"))); + this.saveToolStripMenuItem1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1"; + this.saveToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); + this.saveToolStripMenuItem1.Text = "&Save"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.Location = new System.Drawing.Point(109, 479); + this.label6.Name = "label6"; + this.label6.Padding = new System.Windows.Forms.Padding(0, 5, 0, 0); + this.label6.Size = new System.Drawing.Size(103, 21); + this.label6.TabIndex = 14; + this.label6.Text = "Carica Layout"; + // + // LayoutForm + // + this.AllowDrop = true; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(904, 631); + this.Controls.Add(this.tableLayoutPanel1); + this.MaximizeBox = false; + this.Name = "LayoutForm"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Scelta Layout"; + this.Load += new System.EventHandler(this.LayoutForm_Load); + this.tableLayoutPanel1.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this._2postiPictureBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._8postiPictureBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._6postiPictureBox)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._4postiPictureBox)).EndInit(); + this.panel2.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout11)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout12)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout13)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout14)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout15)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout16)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout17)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout18)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout19)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout21)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout22)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout23)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout24)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout25)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout26)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout27)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout28)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout29)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout31)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout32)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout33)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout34)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout35)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout36)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout37)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout38)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout39)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout41)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout42)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout43)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout44)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout45)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout46)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout47)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout48)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout49)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout51)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout52)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout53)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout54)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout55)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout56)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout57)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout58)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout59)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout61)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout62)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout63)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout64)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout65)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout66)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout67)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout68)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout69)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout71)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout72)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout73)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout74)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout75)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout76)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout77)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout78)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout79)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout81)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout82)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout83)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout84)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout85)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout86)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout87)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout88)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout89)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout91)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout92)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout93)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout94)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout95)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout96)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout97)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout98)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this._pictureBoxLayout99)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; + private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem contentsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem indexToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button _indietroButton; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.PictureBox _4postiPictureBox; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.PictureBox _6postiPictureBox; + private System.Windows.Forms.PictureBox _8postiPictureBox; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button _confermaButton; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.PictureBox _2postiPictureBox; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.PictureBox pictureBox3; + private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; + private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; + private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem undoToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem redoToolStripMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator10; + private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem contentsToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem indexToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem searchToolStripMenuItem1; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator11; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.PictureBox _pictureBoxLayout11; + private System.Windows.Forms.PictureBox _pictureBoxLayout12; + private System.Windows.Forms.PictureBox _pictureBoxLayout13; + private System.Windows.Forms.PictureBox _pictureBoxLayout14; + private System.Windows.Forms.PictureBox _pictureBoxLayout15; + private System.Windows.Forms.PictureBox _pictureBoxLayout16; + private System.Windows.Forms.PictureBox _pictureBoxLayout17; + private System.Windows.Forms.PictureBox _pictureBoxLayout18; + private System.Windows.Forms.PictureBox _pictureBoxLayout19; + private System.Windows.Forms.PictureBox _pictureBoxLayout21; + private System.Windows.Forms.PictureBox _pictureBoxLayout22; + private System.Windows.Forms.PictureBox _pictureBoxLayout23; + private System.Windows.Forms.PictureBox _pictureBoxLayout24; + private System.Windows.Forms.PictureBox _pictureBoxLayout25; + private System.Windows.Forms.PictureBox _pictureBoxLayout26; + private System.Windows.Forms.PictureBox _pictureBoxLayout27; + private System.Windows.Forms.PictureBox _pictureBoxLayout28; + private System.Windows.Forms.PictureBox _pictureBoxLayout29; + private System.Windows.Forms.PictureBox _pictureBoxLayout31; + private System.Windows.Forms.PictureBox _pictureBoxLayout32; + private System.Windows.Forms.PictureBox _pictureBoxLayout33; + private System.Windows.Forms.PictureBox _pictureBoxLayout34; + private System.Windows.Forms.PictureBox _pictureBoxLayout35; + private System.Windows.Forms.PictureBox _pictureBoxLayout36; + private System.Windows.Forms.PictureBox _pictureBoxLayout37; + private System.Windows.Forms.PictureBox _pictureBoxLayout38; + private System.Windows.Forms.PictureBox _pictureBoxLayout39; + private System.Windows.Forms.PictureBox _pictureBoxLayout41; + private System.Windows.Forms.PictureBox _pictureBoxLayout42; + private System.Windows.Forms.PictureBox _pictureBoxLayout43; + private System.Windows.Forms.PictureBox _pictureBoxLayout44; + private System.Windows.Forms.PictureBox _pictureBoxLayout45; + private System.Windows.Forms.PictureBox _pictureBoxLayout46; + private System.Windows.Forms.PictureBox _pictureBoxLayout47; + private System.Windows.Forms.PictureBox _pictureBoxLayout48; + private System.Windows.Forms.PictureBox _pictureBoxLayout49; + private System.Windows.Forms.PictureBox _pictureBoxLayout51; + private System.Windows.Forms.PictureBox _pictureBoxLayout52; + private System.Windows.Forms.PictureBox _pictureBoxLayout53; + private System.Windows.Forms.PictureBox _pictureBoxLayout54; + private System.Windows.Forms.PictureBox _pictureBoxLayout55; + private System.Windows.Forms.PictureBox _pictureBoxLayout56; + private System.Windows.Forms.PictureBox _pictureBoxLayout57; + private System.Windows.Forms.PictureBox _pictureBoxLayout58; + private System.Windows.Forms.PictureBox _pictureBoxLayout59; + private System.Windows.Forms.PictureBox _pictureBoxLayout61; + private System.Windows.Forms.PictureBox _pictureBoxLayout62; + private System.Windows.Forms.PictureBox _pictureBoxLayout63; + private System.Windows.Forms.PictureBox _pictureBoxLayout64; + private System.Windows.Forms.PictureBox _pictureBoxLayout65; + private System.Windows.Forms.PictureBox _pictureBoxLayout66; + private System.Windows.Forms.PictureBox _pictureBoxLayout67; + private System.Windows.Forms.PictureBox _pictureBoxLayout68; + private System.Windows.Forms.PictureBox _pictureBoxLayout69; + private System.Windows.Forms.PictureBox _pictureBoxLayout71; + private System.Windows.Forms.PictureBox _pictureBoxLayout72; + private System.Windows.Forms.PictureBox _pictureBoxLayout73; + private System.Windows.Forms.PictureBox _pictureBoxLayout74; + private System.Windows.Forms.PictureBox _pictureBoxLayout75; + private System.Windows.Forms.PictureBox _pictureBoxLayout76; + private System.Windows.Forms.PictureBox _pictureBoxLayout77; + private System.Windows.Forms.PictureBox _pictureBoxLayout78; + private System.Windows.Forms.PictureBox _pictureBoxLayout79; + private System.Windows.Forms.PictureBox _pictureBoxLayout81; + private System.Windows.Forms.PictureBox _pictureBoxLayout82; + private System.Windows.Forms.PictureBox _pictureBoxLayout83; + private System.Windows.Forms.PictureBox _pictureBoxLayout84; + private System.Windows.Forms.PictureBox _pictureBoxLayout85; + private System.Windows.Forms.PictureBox _pictureBoxLayout86; + private System.Windows.Forms.PictureBox _pictureBoxLayout87; + private System.Windows.Forms.PictureBox _pictureBoxLayout88; + private System.Windows.Forms.PictureBox _pictureBoxLayout89; + private System.Windows.Forms.PictureBox _pictureBoxLayout91; + private System.Windows.Forms.PictureBox _pictureBoxLayout92; + private System.Windows.Forms.PictureBox _pictureBoxLayout93; + private System.Windows.Forms.PictureBox _pictureBoxLayout94; + private System.Windows.Forms.PictureBox _pictureBoxLayout95; + private System.Windows.Forms.PictureBox _pictureBoxLayout96; + private System.Windows.Forms.PictureBox _pictureBoxLayout97; + private System.Windows.Forms.PictureBox _pictureBoxLayout98; + private System.Windows.Forms.PictureBox _pictureBoxLayout99; + private System.Windows.Forms.ComboBox _caricaComboBox; + private System.Windows.Forms.Label label6; + } +} \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/LayoutForm.cs b/PrimaProvaProgetto/Presentation/LayoutForm.cs new file mode 100644 index 0000000..50cdefa --- /dev/null +++ b/PrimaProvaProgetto/Presentation/LayoutForm.cs @@ -0,0 +1,197 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + public partial class LayoutForm : Form + { + public LayoutForm() + { + InitializeComponent(); + + Rectangle resolution = System.Windows.Forms.Screen.PrimaryScreen.Bounds; + if (resolution.Height < Size.Height || resolution.Width < Size.Width) + { + panel1.AutoScroll = true; + //La dimenione la riduco ulteriormente per evitare che finisca sotto la barra inferiore + //(solitamente la gente ha la barra in basso, so che non è il massimo come soluzione) + Size = new Size(resolution.Width, resolution.Height - 50); + + } + + foreach (TipoLayout tipo in Enum.GetValues(typeof(TipoLayout))) + { + CaricaComboBox.Items.Add(tipo); + } + CaricaComboBox.SelectedIndex = 0; + + //NON permette il ridimensionamento + MaximumSize = Size; + MinimumSize = Size; + } + + /* NOTE: + * + * Per realizzare la griglia della view ho sfruttato dei tableLayoutPanel sui quali ho poi applicato un pannello (sulla destra) e la griglia (a sinistra). + * In quello di sinistra ho realizzato una matrice di PictureBox, sono dei controlli adatti ad ospitare immagini al loro interno + * e ai quali si è vincolati per realizzare delle operazioni di drag'n'drop di immagini (ho provato alternative ma con risultati negativi) + * Ogni PictureBox ha gli handler di riferimento associati (vedi note di sotto) e ho impostato la risoluzione in modo che l'immagine sia "stretchata" al suo interno, prima dal designer e poi aggiungendo + * con i foreach i metodi giusti ciclando per gruppi di PictureBox (del layout di destra o di sinistra...) + * Le pictureBox della griglia hanno i nomi con le enumerazioni della cella in cui si trovano nella matrice (es: _pictureBoxLayout11 è in riferimento alla riga 1 e colonna 1 della matrice) + * + * + * Ho definito due gruppi di nomi di metodi: + * -> _2postiPictureBox è il riferimento per tutte le pictureBox di destra (da notare nel designer l'associazione a tutta questa categoria di metodi e anche tramite delegati nel codice) + * -> _pictureBoxLayout11 è il riferimento per tutte le pictureBox di sinistra. + * + * Li ho differenziati poichè per quelle di destra è prevista una copia delle immagini e effetto zoom al mouseEnter + * in quelle di sinistra invece ho previsto uno spostamento dell'immagine (copio alla destinazione e cancello la sorgente) così il cliente si vede il tavolo spostato + * cosa che per quelli di destra invece non è giusto fare... + * + * COSE MANCANTI: + * Gestione dei tavoli posizionati sul layout (lista o array) sul quale intervenire con le operazioni di modifica e/o salvataggio del layout (va qui o nel presenter?) + * Gestione dei tre pulsanti e funzionalità annesse. + */ + + private void LayoutForm_Load(object sender, EventArgs e) + { + //Handler per i pictureBox di destra, ad ogni drag viene fatta una copia dell'immagine + IEnumerable tavoliBox = panel1.Controls.OfType(); + foreach (PictureBox pb in tavoliBox) + { + pb.AllowDrop = true; + pb.MouseEnter += new EventHandler(_postiPictureBox_MouseEnter); + pb.MouseLeave += new EventHandler(_postiPictureBox_MouseLeave); + pb.MouseDown += new MouseEventHandler(_postiPictureBox_MouseDown); + } + + + //Handler per i pictureBox di sinistra, ad ogni drag viene spostata l'immagine e cancellata + //quella della pictureBox di partenza + IEnumerable layoutBox = tableLayoutPanel2.Controls.OfType(); + foreach (PictureBox pb in layoutBox) + { + pb.AllowDrop = true; + pb.MouseDown += new MouseEventHandler(_pictureBoxLayout11_MouseDown); + pb.DragEnter += new DragEventHandler(_pictureBoxLayout11_DragEnter); + pb.DragDrop += new DragEventHandler(_pictureBoxLayout11_DragDrop); + } + } + + + // L'evento indica la pressione del pulsante del mouse (quindi sottintende + // l'inizio dell'operazione di drag dell'immagine) + private void _postiPictureBox_MouseDown(object sender, MouseEventArgs e) + { + PictureBox pb = (PictureBox)sender; + pb.Select(); + if (pb.Tag != null) + { + pb.DoDragDrop(pb.Tag, DragDropEffects.Copy); + } + } + + private void _pictureBoxLayout11_MouseDown(object sender, MouseEventArgs e) + { + PictureBox pb = (PictureBox)sender; + pb.Select(); + if (pb.Tag != null) + { + if (e.Button == System.Windows.Forms.MouseButtons.Right) + { + pb.Image = null; + pb.Tag = null; + MessageBox.Show("Tavolo Eliminato", "Elimina"); + } + else + { + pb.DoDragDrop(pb.Tag, DragDropEffects.Copy); + pb.Image = null; + pb.Tag = null; + } + } + } + + //Evento triggerato quando viene completata l'operazione di trascinamento + private void _pictureBoxLayout11_DragDrop(object sender, DragEventArgs e) + { + PictureBox pb = (PictureBox)sender; + pb.Tag = (String)e.Data.GetData(DataFormats.StringFormat); + String propertyToInvoke = "Posti" + pb.Tag + "PictureBox"; + PictureBox pbDestra = (PictureBox)this.GetType().GetProperty(propertyToInvoke).GetValue(this); + pb.Image = pbDestra.Image; + } + + //L'evento DragEnter viene triggerato quando un oggetto entra all'interno + //dei confini di un determinato controllo (nel nostro caso la pictureBox + //che dovranno ospitare le immagini dei tavoli) + private void _pictureBoxLayout11_DragEnter(object sender, DragEventArgs e) + { + e.Effect = DragDropEffects.Copy; + } + + //Qui gestisco il cambio di cursore sulle pictureBox di destra + private void _postiPictureBox_MouseEnter(object sender, EventArgs e) + { + PictureBox pb = (PictureBox)sender; + pb.SizeMode = PictureBoxSizeMode.StretchImage; + pb.Cursor = Cursors.Hand; + } + + //Qui gestisco il cambio di cursore sulle pictureBox di destra + private void _postiPictureBox_MouseLeave(object sender, EventArgs e) + { + PictureBox pb = (PictureBox)sender; + pb.SizeMode = PictureBoxSizeMode.Zoom; + pb.Cursor = Cursors.Default; + } + + public Button IndietroButton + { + get { return _indietroButton; } + } + + public ComboBox CaricaComboBox + { + get { return _caricaComboBox; } + } + + public Button ConfermaButton + { + get { return _confermaButton; } + } + + public PictureBox Posti2PictureBox + { + get { return _2postiPictureBox; } + } + + public PictureBox Posti4PictureBox + { + get { return _4postiPictureBox; } + } + + public PictureBox Posti6PictureBox + { + get { return _6postiPictureBox; } + } + + public PictureBox Posti8PictureBox + { + get { return _8postiPictureBox; } + } + + public TableLayoutPanel TableLayoutPanel2 + { + get { return tableLayoutPanel2; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/LayoutForm.resx b/PrimaProvaProgetto/Presentation/LayoutForm.resx new file mode 100644 index 0000000..059c5f6 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/LayoutForm.resx @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAERSURBVDhPrZDbSgJRGIXnpewd6jXsjSQvIrwoI0RQMChU + 0iiDPCGiE3ZCRkvR8VzTeBhnyR5/ccaZNnPhB4t9sdf6Ln5hb8QeathNJFVFKF5C8DqL4ksDVHWGDf7j + LHyPg6NjviSaFqlu5yQYR+KpupaIkrMknCxT3Y7v/NYYb0ITK1c3BarbWWhLQ7IR0cTKReyZ6lZ0XYei + ztHpK4bAc+h1FgQijzSxMptrGIxVSO0xX3AaStFki7bUMVFmaMm/eJMGfIH/MkGzLep0AXn4h/r3CJV3 + mS9gn2bY4UY/UzQ7E9TqfeTFtnuB+XAfzSHKr11kSl/uBebDiZ89ZCst3OUkdwL28sIVsE83ock+EIQV + 2Mz2wxeg6/UAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJHSURBVDhPxZBdSNNhFMb/F110ZZEVhVBgeeHNICiiuggp + olAUyyxI0oSaH1QYC3N+tKnp5ubm1JUua5uuqdNKMwr7kApFItTUkWZqVhSVYmao5Nevvy7UoYR3HXh4 + 4XCe33nOKyy3lAY7l9RWMo0O/raWXxEyo5spVYTNvOGyfIRPfW+ptOkXqaPl6T83hcRmExSdgzAz3NVm + YWyoYla/B+1M9JtxWLPpaH22JORIjI6gKAMB0jyEimIdo4OlbuaprwVMOOMovammpDADc34qppwUrmnl + 5Kni3aFlFg2j3y1z5mnRTJccnNIltQhwq0jFry+mOXNtpWZWDx1Z1NhV3C3JwGFOw25SYjVe5oYhiUKd + HKMmwQUrMWUw/CF3NnZvvYKqUh1TvUroS3fXe7HXkwidMngTS2t5KLbregSzMY2f3Wr4qKW6LJvGR1rX + 0MLor8OhKYTJBn/GHvvxrliCTBrsOqXIoOBHh5K+hmSq7FqmexTQHuUytkaKxuNMNgYyVneA4Qd7GKjc + hjLaRzxH7gIU6JIZaEvgtk1D8wsxSWecCDgNzWFMvwxm/PkhRmr3Mli1nW9lvjRdWc0Jf+/5jzRmyWmv + S+GOLQu6U6BFjPvqKOP1AYw88WOoZif9DgmfLVtxaj1RSLdwNvrkPCA3M54KqxrnvRia9MKcGrUrqFOt + 5H7qKsqT1mGO9+Lqhc2ELdw+U/r0i+gVZ8hMiCDx3DHORwZyKnQ/hw/uYt9uCTskPvh6e7Fp41rWr/Fg + g6eHO+A/lyD8ARfG3mk9fv1YAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIySURBVDhPrZLfS5NRGMfff6H7boIuuq2pMZyL1eAt11CW + DcOKsB9vpFmaLtNExco0av6CbIVLJ61Wk3BSkT/AFCkRZSpZmrmiJQ41xSaCwdfznL15XEUX0Reem5f3 + 8znnec4j/Zc8fxYGla91CS3eRTx0z6OpMYS7jmnU1X6B/VYA18snUVoyjsKCt8jLHcH5c36ouCQR2NUJ + 1Nas4G9ZXlmFKbULh1Kf8lJxSfI+WeCCyopv6q+/h+DQ/DJ2WV5Ao1FgPegRAveDOS4oLfmq/h6dn/DH + 4AJizD4UXJrCAUuzEDgbZrjgou2DiohshIcnQtgme5GTPYbkJKcQ1N8OckHW2REVi+RXuM8fxGaDG4oy + ALPZIQQ11Z+5QDk1oKJ/hjv7P2FTfCMOH3mFxMQ6IbhROYWOdrCnBI4dfwPr0V4+bRoY9UzXppMjcDdS + rC8hy3YhuFI2gTYf2A4Aza4f7N2/o/zaLB8qDYx6zszwr8P7k1thNFYIweXCMXgeAfedq2xxwjClZUeV + Jd2GtDNFETiJwfs8MBjKhMCWN8pgoLoqzE8miH1GjE7G4PsZjE7OQsm9ij2mFg7rdrug1xcJAa2l4w7W + r00Cgk/n38S7wBwC04u4UGxHrMHF4CbEJtyDLj5fCDIzhljfSxzeavRgyw4Zj9t64GvvQ0d3P3pfD2Kv + 2QqNvgFxDN6urYdWmyMElJMnevh60obRktA701PRtGlg1DOdSkXwzrisaMG/RZLWAE60OMW5fNhvAAAA + AElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAERSURBVDhPrZDbSgJRGIXnpewd6jXsjSQvIrwoI0RQMChU + 0iiDPCGiE3ZCRkvR8VzTeBhnyR5/ccaZNnPhB4t9sdf6Ln5hb8QeathNJFVFKF5C8DqL4ksDVHWGDf7j + LHyPg6NjviSaFqlu5yQYR+KpupaIkrMknCxT3Y7v/NYYb0ITK1c3BarbWWhLQ7IR0cTKReyZ6lZ0XYei + ztHpK4bAc+h1FgQijzSxMptrGIxVSO0xX3AaStFki7bUMVFmaMm/eJMGfIH/MkGzLep0AXn4h/r3CJV3 + mS9gn2bY4UY/UzQ7E9TqfeTFtnuB+XAfzSHKr11kSl/uBebDiZ89ZCst3OUkdwL28sIVsE83ock+EIQV + 2Mz2wxeg6/UAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAJHSURBVDhPxZBdSNNhFMb/F110ZZEVhVBgeeHNICiiuggp + olAUyyxI0oSaH1QYC3N+tKnp5ubm1JUua5uuqdNKMwr7kApFItTUkWZqVhSVYmao5Nevvy7UoYR3HXh4 + 4XCe33nOKyy3lAY7l9RWMo0O/raWXxEyo5spVYTNvOGyfIRPfW+ptOkXqaPl6T83hcRmExSdgzAz3NVm + YWyoYla/B+1M9JtxWLPpaH22JORIjI6gKAMB0jyEimIdo4OlbuaprwVMOOMovammpDADc34qppwUrmnl + 5Kni3aFlFg2j3y1z5mnRTJccnNIltQhwq0jFry+mOXNtpWZWDx1Z1NhV3C3JwGFOw25SYjVe5oYhiUKd + HKMmwQUrMWUw/CF3NnZvvYKqUh1TvUroS3fXe7HXkwidMngTS2t5KLbregSzMY2f3Wr4qKW6LJvGR1rX + 0MLor8OhKYTJBn/GHvvxrliCTBrsOqXIoOBHh5K+hmSq7FqmexTQHuUytkaKxuNMNgYyVneA4Qd7GKjc + hjLaRzxH7gIU6JIZaEvgtk1D8wsxSWecCDgNzWFMvwxm/PkhRmr3Mli1nW9lvjRdWc0Jf+/5jzRmyWmv + S+GOLQu6U6BFjPvqKOP1AYw88WOoZif9DgmfLVtxaj1RSLdwNvrkPCA3M54KqxrnvRia9MKcGrUrqFOt + 5H7qKsqT1mGO9+Lqhc2ELdw+U/r0i+gVZ8hMiCDx3DHORwZyKnQ/hw/uYt9uCTskPvh6e7Fp41rWr/Fg + g6eHO+A/lyD8ARfG3mk9fv1YAAAAAElFTkSuQmCC + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIySURBVDhPrZLfS5NRGMfff6H7boIuuq2pMZyL1eAt11CW + DcOKsB9vpFmaLtNExco0av6CbIVLJ61Wk3BSkT/AFCkRZSpZmrmiJQ41xSaCwdfznL15XEUX0Reem5f3 + 8znnec4j/Zc8fxYGla91CS3eRTx0z6OpMYS7jmnU1X6B/VYA18snUVoyjsKCt8jLHcH5c36ouCQR2NUJ + 1Nas4G9ZXlmFKbULh1Kf8lJxSfI+WeCCyopv6q+/h+DQ/DJ2WV5Ao1FgPegRAveDOS4oLfmq/h6dn/DH + 4AJizD4UXJrCAUuzEDgbZrjgou2DiohshIcnQtgme5GTPYbkJKcQ1N8OckHW2REVi+RXuM8fxGaDG4oy + ALPZIQQ11Z+5QDk1oKJ/hjv7P2FTfCMOH3mFxMQ6IbhROYWOdrCnBI4dfwPr0V4+bRoY9UzXppMjcDdS + rC8hy3YhuFI2gTYf2A4Aza4f7N2/o/zaLB8qDYx6zszwr8P7k1thNFYIweXCMXgeAfedq2xxwjClZUeV + Jd2GtDNFETiJwfs8MBjKhMCWN8pgoLoqzE8miH1GjE7G4PsZjE7OQsm9ij2mFg7rdrug1xcJAa2l4w7W + r00Cgk/n38S7wBwC04u4UGxHrMHF4CbEJtyDLj5fCDIzhljfSxzeavRgyw4Zj9t64GvvQ0d3P3pfD2Kv + 2QqNvgFxDN6urYdWmyMElJMnevh60obRktA701PRtGlg1DOdSkXwzrisaMG/RZLWAE60OMW5fNhvAAAA + AElFTkSuQmCC + + + + 53 + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/LayoutFormPresenter.cs b/PrimaProvaProgetto/Presentation/LayoutFormPresenter.cs new file mode 100644 index 0000000..8bfe6f8 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/LayoutFormPresenter.cs @@ -0,0 +1,116 @@ +using PrimaProvaProgetto.Model; +using PrimaProvaProgetto.Persistance; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using static PrimaProvaProgetto.Model.LocaleRistorazione; + +namespace PrimaProvaProgetto.Presentation +{ + class LayoutFormPresenter + { + LayoutForm _target; + + public LayoutFormPresenter(LayoutForm target) + { + _target = target; + + Target.ConfermaButton.Click += ConfermaButton_onClick; + Target.CaricaComboBox.SelectedValueChanged += CaricaButton_onClick; + Target.IndietroButton.Click += IndietroButton_onClick; + + Carica(LayoutPersisterFactory.GetLayoutLoader("SimpleJsonLayoutLoader").Load(TipoLayout.Ultimo)); + } + + private void CaricaButton_onClick(object sender, EventArgs e) + { + Carica(LayoutPersisterFactory.GetLayoutLoader("SimpleJsonLayoutLoader").Load(((TipoLayout)((ComboBox)sender).SelectedItem))); + + } + + private void Carica(Dictionary tavoli) + { + IEnumerable layoutBox = Target.TableLayoutPanel2.Controls.OfType(); + + Tavolo tavolo; + + foreach (PictureBox pb in layoutBox) + { + String name = pb.Name; + // Ricavo le coordinate dal nome della PictureBox + String coordinate = name.Substring(name.Length - 2); + if (tavoli.ContainsKey(coordinate)) + { + tavolo = tavoli[coordinate]; + pb.Tag = tavolo.PostiMax.ToString(); + String propertyToInvoke = "Posti" + pb.Tag + "PictureBox"; + PictureBox pbDestra = (PictureBox)Target.GetType().GetProperty(propertyToInvoke).GetValue(Target); + pb.Image = pbDestra.Image; + } + else + { + pb.Tag = null; + pb.Image = null; + } + } + } + + private void IndietroButton_onClick(object sender, EventArgs e) + { + Target.Close(); + } + + private void ConfermaButton_onClick(object sender, EventArgs e) + { + DialogResult dr = MessageBox.Show( + "Sei sicuro di voler salvare questo Layout?", + "Conferma Layout", + MessageBoxButtons.YesNo, + MessageBoxIcon.Information, + MessageBoxDefaultButton.Button2); + if (dr == DialogResult.Yes) + { + LocaleRistorazione ristorante = LocaleRistorazione.GetInstance(); + Dictionary tavoli = new Dictionary(); + + IEnumerable layoutBox = Target.TableLayoutPanel2.Controls.OfType(); + + foreach (PictureBox pb in layoutBox) + { + if (pb.Tag != null) + { + String name = pb.Name; + // Ricavo le coordinate dal nome della PictureBox + String coordinate = name.Substring(name.Length - 2); + tavoli.Add(coordinate, new Tavolo(int.Parse(pb.Tag.ToString()), StatoTavolo.Libero)); + } + } + ristorante.Tavoli = tavoli.Values.ToList(); + + LayoutPersisterFactory.GetLayoutSaver("SimpleJsonLayoutSaver").Save(tavoli); + if (tavoli.Count == 0) + { + MessageBox.Show( + "Il layout non contiene tavoli, non sarà possibile avviare il totem clienti", + "Nessun Tavolo", + MessageBoxButtons.OK, + MessageBoxIcon.Warning); + } + + Target.Close(); + } + } + + public LayoutForm Target + { + get + { + return _target; + } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/MenuForm.Designer.cs b/PrimaProvaProgetto/Presentation/MenuForm.Designer.cs index ffc7f53..4d4ab6c 100644 --- a/PrimaProvaProgetto/Presentation/MenuForm.Designer.cs +++ b/PrimaProvaProgetto/Presentation/MenuForm.Designer.cs @@ -30,10 +30,12 @@ private void InitializeComponent() { this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this._newPietanzaButton = new System.Windows.Forms.Button(); this._indietroButton = new System.Windows.Forms.Button(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -42,6 +44,7 @@ private void InitializeComponent() this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); this.SuspendLayout(); // // splitContainer1 @@ -59,6 +62,7 @@ private void InitializeComponent() // // splitContainer1.Panel2 // + this.splitContainer1.Panel2.Controls.Add(this._newPietanzaButton); this.splitContainer1.Panel2.Controls.Add(this._indietroButton); this.splitContainer1.Size = new System.Drawing.Size(558, 543); this.splitContainer1.SplitterDistance = 472; @@ -74,8 +78,7 @@ private void InitializeComponent() // // splitContainer2.Panel1 // - this.splitContainer2.Panel1.Controls.Add(this.label2); - this.splitContainer2.Panel1.Controls.Add(this.label1); + this.splitContainer2.Panel1.Controls.Add(this.tableLayoutPanel2); // // splitContainer2.Panel2 // @@ -84,41 +87,31 @@ private void InitializeComponent() this.splitContainer2.SplitterDistance = 48; this.splitContainer2.TabIndex = 2; // - // label2 - // - this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Right))); - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(405, 14); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(86, 20); - this.label2.TabIndex = 3; - this.label2.Text = "Disponibile"; - // - // label1 - // - this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(70, 14); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(47, 20); - this.label1.TabIndex = 2; - this.label1.Text = "Titolo"; - // // tableLayoutPanel1 // + this.tableLayoutPanel1.AutoScroll = true; this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 1; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 420F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(558, 420); this.tableLayoutPanel1.TabIndex = 0; // + // _newPietanzaButton + // + this._newPietanzaButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + this._newPietanzaButton.Location = new System.Drawing.Point(286, 12); + this._newPietanzaButton.Name = "_newPietanzaButton"; + this._newPietanzaButton.Size = new System.Drawing.Size(119, 43); + this._newPietanzaButton.TabIndex = 1; + this._newPietanzaButton.Text = "&Nuova"; + this._newPietanzaButton.UseVisualStyleBackColor = true; + // // _indietroButton // this._indietroButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) @@ -130,6 +123,41 @@ private void InitializeComponent() this._indietroButton.Text = "Indietro"; this._indietroButton.UseVisualStyleBackColor = true; // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 2; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel2.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel2.Controls.Add(this.label2, 1, 0); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 1; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(558, 48); + this.tableLayoutPanel2.TabIndex = 0; + // + // label1 + // + this.label1.Anchor = System.Windows.Forms.AnchorStyles.None; + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(185, 14); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(47, 20); + this.label1.TabIndex = 0; + this.label1.Text = "Titolo"; + // + // label2 + // + this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right; + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(469, 14); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(86, 20); + this.label2.TabIndex = 1; + this.label2.Text = "Disponibile"; + // // MenuForm // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); @@ -143,10 +171,11 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel1.PerformLayout(); this.splitContainer2.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); this.splitContainer2.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel2.PerformLayout(); this.ResumeLayout(false); } @@ -156,8 +185,10 @@ private void InitializeComponent() private System.Windows.Forms.SplitContainer splitContainer1; private System.Windows.Forms.Button _indietroButton; private System.Windows.Forms.SplitContainer splitContainer2; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Button _newPietanzaButton; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; } } \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/MenuForm.cs b/PrimaProvaProgetto/Presentation/MenuForm.cs index 133060c..6abbfd6 100644 --- a/PrimaProvaProgetto/Presentation/MenuForm.cs +++ b/PrimaProvaProgetto/Presentation/MenuForm.cs @@ -26,12 +26,20 @@ public TableLayoutPanel TableLayoutPanel } } - public Button Indietro + public Button IndietroButton { get { return _indietroButton; } } + + public Button NuovaPietanzaButton + { + get + { + return _newPietanzaButton; + } + } } } diff --git a/PrimaProvaProgetto/Presentation/MenuFormPresenter.cs b/PrimaProvaProgetto/Presentation/MenuFormPresenter.cs new file mode 100644 index 0000000..ca58c91 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/MenuFormPresenter.cs @@ -0,0 +1,105 @@ +using PrimaProvaProgetto.Model; +using PrimaProvaProgetto.Persistance; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class MenuFormPresenter + { + private MenuForm _target; + private ModifierForm _modifierForm; + private ModifierFormPresenter _modifierFormPresenter; + + public MenuFormPresenter(MenuForm target) + { + _target = target; + Target.SuspendLayout(); + + DrawPietanze(); + + Target.IndietroButton.Click += buttonIndietro_Click; + Target.NuovaPietanzaButton.Click += buttonNuovaPietanza_Click; + + + _modifierForm = new ModifierForm(); + _modifierFormPresenter = new ModifierFormPresenter(_modifierForm); + + Target.ResumeLayout(false); + } + + private void DrawPietanze() + { + Target.TableLayoutPanel.Controls.Clear(); + foreach (Pietanza p in LocaleRistorazione.GetInstance().Menu) + InsertPietanza(p); + } + + private void buttonNuovaPietanza_Click(object sender, EventArgs e) + { + Pietanza newPietanza = new Pietanza("", 0m, Categoria.Antipasto, new List()); + _modifierFormPresenter.SetEditableObject(newPietanza); + if(_modifierForm.ShowDialog() == DialogResult.OK) + { + InsertPietanza(newPietanza); + LocaleRistorazione.GetInstance().Menu.Add(newPietanza); + } + + } + + private void buttonIndietro_Click(object sender, EventArgs e) + { + if(LocaleRistorazione.GetInstance().Menu.Where(p => p.Disponibile == true).ToList().Count == 0) + { + MessageBox.Show( + "Il menu non contiene pietanze disponibili, non sarà possibile avviare il totem clienti", + "Nessuna Pietanza", + MessageBoxButtons.OK, + MessageBoxIcon.Warning); + } + + Target.Close(); + } + + private void buttonModifica_Click(object sender, EventArgs e) + { + _modifierFormPresenter.SetEditableObject(((ToolStripMenuItem)sender).Tag); + _modifierForm.ShowDialog(); + } + + public MenuForm Target + { + get + { + return _target; + } + } + + private void InsertPietanza(Pietanza p) + { + PietanzaControl pc = new PietanzaControl(); + pc.Pietanza = p; + Target.TableLayoutPanel.Controls.Add(pc, 0, Target.TableLayoutPanel.RowCount++ - 2); + pc.Modifica.Click += buttonModifica_Click; + pc.Elimina.Click += buttonElimina_Click; + } + + private void buttonElimina_Click(object sender, EventArgs e) + { + Pietanza toDelete = (Pietanza)((ToolStripMenuItem)sender).Tag; + DialogResult dr = MessageBox.Show( + "Sei sicuro di voler eliminare la pietanza " + toDelete.Titolo + "?", + "Conferma Eliminazione", + MessageBoxButtons.YesNo, + MessageBoxIcon.Warning, + MessageBoxDefaultButton.Button2); + if (dr == DialogResult.Yes) + LocaleRistorazione.GetInstance().Menu.Remove(toDelete); + DrawPietanze(); + } + } +} diff --git a/PrimaProvaProgetto/Presentation/ModifierForm.Designer.cs b/PrimaProvaProgetto/Presentation/ModifierForm.Designer.cs new file mode 100644 index 0000000..b0acfc0 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ModifierForm.Designer.cs @@ -0,0 +1,122 @@ +namespace PrimaProvaProgetto.Presentation +{ + partial class ModifierForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this._cancelButton = new System.Windows.Forms.Button(); + this._okButton = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.AutoScroll = true; + this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel1); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this._cancelButton); + this.splitContainer1.Panel2.Controls.Add(this._okButton); + this.splitContainer1.Size = new System.Drawing.Size(519, 469); + this.splitContainer1.SplitterDistance = 385; + this.splitContainer1.TabIndex = 0; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.AutoScroll = true; + this.tableLayoutPanel1.ColumnCount = 2; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60F)); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 1; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); + this.tableLayoutPanel1.Size = new System.Drawing.Size(519, 385); + this.tableLayoutPanel1.TabIndex = 0; + // + // _cancelButton + // + this._cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this._cancelButton.Location = new System.Drawing.Point(432, 22); + this._cancelButton.Name = "_cancelButton"; + this._cancelButton.Size = new System.Drawing.Size(75, 34); + this._cancelButton.TabIndex = 1; + this._cancelButton.Text = "&Annulla"; + this._cancelButton.UseVisualStyleBackColor = true; + // + // _okButton + // + this._okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this._okButton.Location = new System.Drawing.Point(329, 22); + this._okButton.Name = "_okButton"; + this._okButton.Size = new System.Drawing.Size(75, 34); + this._okButton.TabIndex = 0; + this._okButton.Text = "&OK"; + this._okButton.UseVisualStyleBackColor = true; + // + // ModifierForm + // + this.AcceptButton = this._okButton; + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this._cancelButton; + this.ClientSize = new System.Drawing.Size(519, 469); + this.Controls.Add(this.splitContainer1); + this.Name = "ModifierForm"; + this.Text = "ModifierForm"; + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.Button _cancelButton; + private System.Windows.Forms.Button _okButton; + } +} \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/ModifierForm.cs b/PrimaProvaProgetto/Presentation/ModifierForm.cs new file mode 100644 index 0000000..d835f85 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ModifierForm.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + public partial class ModifierForm : Form + { + public ModifierForm() + { + InitializeComponent(); + } + + public Button OkButton + { + get { return _okButton; } + } + + public Button IndietroButton + { + get { return _cancelButton; } + } + + public TableLayoutPanel PropertiesPanel + { + get { return tableLayoutPanel1; } + } + } +} diff --git a/PrimaProvaProgetto/Presentation/ModifierForm.resx b/PrimaProvaProgetto/Presentation/ModifierForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ModifierForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PrimaProvaProgetto/Presentation/ModifierFormPresenter.cs b/PrimaProvaProgetto/Presentation/ModifierFormPresenter.cs new file mode 100644 index 0000000..edbc270 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/ModifierFormPresenter.cs @@ -0,0 +1,84 @@ +using PrimaProvaProgetto.Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class ModifierFormPresenter + { + private ModifierForm _target; + private object _toModify; + + public ModifierFormPresenter(ModifierForm target) + { + if (target == null) + throw new ArgumentNullException("target"); + _target = target; + Target.OkButton.Click += OkButton_Click; + } + + public ModifierForm Target + { + get { return _target; } + } + + public void SetEditableObject(object toModify) + { + _toModify = toModify; + InitializeTarget(); + } + + private void InitializeTarget() + { + Target.SuspendLayout(); + Target.PropertiesPanel.Controls.Clear(); + IEnumerable editableProperties = _toModify.GetType().GetProperties(). + Where(property => property.GetCustomAttribute() != null); + + foreach (PropertyInfo property in editableProperties) + AddRow(property); + Target.ResumeLayout(false); + + Target.OkButton.Focus(); + } + + private void AddRow(PropertyInfo property) + { + EditabileAttribute attribute = property.GetCustomAttribute(); + Label name = new Label(); + name.Text = property.Name; + Target.PropertiesPanel.Controls.Add(name, 0, Target.PropertiesPanel.RowCount); + + Control modifier; + if (attribute.Modifier == null) + modifier = new StringModifier(); + else + modifier = (Control)attribute.Modifier.GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes); + modifier.Name = "_" + name.Text + "Modifier"; + modifier.Tag = property; + Target.PropertiesPanel.Controls.Add(modifier, 1, Target.PropertiesPanel.RowCount++); + ((IModifierControl)modifier).MyValue = property.GetGetMethod().Invoke(_toModify, null); + } + + public void OkButton_Click(object sender, EventArgs e) + { + foreach(Control control in Target.PropertiesPanel.Controls) + { + if (! (control is Label)) + { + IModifierControl modifier = (IModifierControl)control; + PropertyInfo property = (PropertyInfo)((Control)modifier).Tag; + property.GetSetMethod().Invoke(_toModify, new[] { modifier.MyValue }); + } + } + Target.DialogResult = DialogResult.OK; + Target.Close(); + } + + } +} diff --git a/PrimaProvaProgetto/Presentation/MoneyModifier.Designer.cs b/PrimaProvaProgetto/Presentation/MoneyModifier.Designer.cs deleted file mode 100644 index 359a095..0000000 --- a/PrimaProvaProgetto/Presentation/MoneyModifier.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -namespace PrimaProvaProgetto.Presentation -{ - partial class MoneyModifier - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this._numericUpDown = new System.Windows.Forms.NumericUpDown(); - ((System.ComponentModel.ISupportInitialize)(this._numericUpDown)).BeginInit(); - this.SuspendLayout(); - // - // _numericUpDown - // - this._numericUpDown.DecimalPlaces = 2; - this._numericUpDown.Dock = System.Windows.Forms.DockStyle.Fill; - this._numericUpDown.Increment = new decimal(new int[] { - 1, - 0, - 0, - 131072}); - this._numericUpDown.Location = new System.Drawing.Point(0, 0); - this._numericUpDown.Maximum = new decimal(new int[] { - 1000, - 0, - 0, - 0}); - this._numericUpDown.Name = "_numericUpDown"; - this._numericUpDown.Size = new System.Drawing.Size(123, 26); - this._numericUpDown.TabIndex = 0; - this._numericUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - // - // MoneyModifier - // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoSize = true; - this.Controls.Add(this._numericUpDown); - this.Name = "MoneyModifier"; - this.Size = new System.Drawing.Size(123, 28); - ((System.ComponentModel.ISupportInitialize)(this._numericUpDown)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.NumericUpDown _numericUpDown; - } -} diff --git a/PrimaProvaProgetto/Presentation/MoneyModifier.cs b/PrimaProvaProgetto/Presentation/MoneyModifier.cs index b381bd2..23f228b 100644 --- a/PrimaProvaProgetto/Presentation/MoneyModifier.cs +++ b/PrimaProvaProgetto/Presentation/MoneyModifier.cs @@ -1,34 +1,25 @@ -using System; +using PrimaProvaProgetto.Model; +using System; using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; -using PrimaProvaProgetto.Model; namespace PrimaProvaProgetto.Presentation { - public partial class MoneyModifier : UserControl + class MoneyModifier : NumericUpDown, IModifierControl { public MoneyModifier() { - InitializeComponent(); + DecimalPlaces = 2; + Increment = 0.01m; } - public Money MoneyValue + public object MyValue { - set - { - _numericUpDown.Value = value; - } - - get - { - return new Money(_numericUpDown.Value); - } + get { return new Money(Value); } + set { Value = (Money)value; } } } } diff --git a/PrimaProvaProgetto/Presentation/PietanzaControl.Designer.cs b/PrimaProvaProgetto/Presentation/PietanzaControl.Designer.cs index 428ba4a..85f8a03 100644 --- a/PrimaProvaProgetto/Presentation/PietanzaControl.Designer.cs +++ b/PrimaProvaProgetto/Presentation/PietanzaControl.Designer.cs @@ -33,6 +33,7 @@ private void InitializeComponent() this._disponibileCheckBox = new System.Windows.Forms.CheckBox(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this._modificaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this._eliminaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -48,7 +49,7 @@ private void InitializeComponent() // this._disponibileCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this._disponibileCheckBox.AutoSize = true; - this._disponibileCheckBox.Location = new System.Drawing.Point(223, 15); + this._disponibileCheckBox.Location = new System.Drawing.Point(155, 15); this._disponibileCheckBox.Name = "_disponibileCheckBox"; this._disponibileCheckBox.Size = new System.Drawing.Size(22, 21); this._disponibileCheckBox.TabIndex = 1; @@ -59,24 +60,33 @@ private void InitializeComponent() // this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(24, 24); this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this._modificaToolStripMenuItem}); + this._modificaToolStripMenuItem, + this._eliminaToolStripMenuItem}); this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(154, 34); + this.contextMenuStrip1.Size = new System.Drawing.Size(199, 97); // // _modificaToolStripMenuItem // this._modificaToolStripMenuItem.Name = "_modificaToolStripMenuItem"; - this._modificaToolStripMenuItem.Size = new System.Drawing.Size(153, 30); + this._modificaToolStripMenuItem.Size = new System.Drawing.Size(198, 30); this._modificaToolStripMenuItem.Text = "&Modifica"; // + // _eliminaToolStripMenuItem + // + this._eliminaToolStripMenuItem.Name = "_eliminaToolStripMenuItem"; + this._eliminaToolStripMenuItem.Size = new System.Drawing.Size(198, 30); + this._eliminaToolStripMenuItem.Text = "&Elimina"; + // // PietanzaControl // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoSize = true; + this.ContextMenuStrip = this.contextMenuStrip1; this.Controls.Add(this._disponibileCheckBox); this.Controls.Add(this._nomeLabel); this.Name = "PietanzaControl"; - this.Size = new System.Drawing.Size(264, 51); + this.Size = new System.Drawing.Size(196, 51); this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -89,5 +99,6 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox _disponibileCheckBox; private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem _modificaToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem _eliminaToolStripMenuItem; } } diff --git a/PrimaProvaProgetto/Presentation/PietanzaControl.cs b/PrimaProvaProgetto/Presentation/PietanzaControl.cs index a793360..7034984 100644 --- a/PrimaProvaProgetto/Presentation/PietanzaControl.cs +++ b/PrimaProvaProgetto/Presentation/PietanzaControl.cs @@ -45,13 +45,15 @@ public Pietanza Pietanza { _pietanza = value; _pietanza.Changed += _pietanza_Changed; + _modificaToolStripMenuItem.Tag = Pietanza; + _eliminaToolStripMenuItem.Tag = Pietanza; Draw(); } } private void Draw() { - _nomeLabel.Text = Pietanza.Titolo; + _nomeLabel.Text = Pietanza.Titolo + ((Pietanza.Descrizione == "") ? ("") : (Environment.NewLine)) + Pietanza.Descrizione; _disponibileCheckBox.Checked = Pietanza.Disponibile; } @@ -67,6 +69,14 @@ public ToolStripMenuItem Modifica return _modificaToolStripMenuItem; } } - + + public ToolStripMenuItem Elimina + { + get + { + return _eliminaToolStripMenuItem; + } + } + } } diff --git a/PrimaProvaProgetto/Presentation/StringModifier.cs b/PrimaProvaProgetto/Presentation/StringModifier.cs new file mode 100644 index 0000000..35801d1 --- /dev/null +++ b/PrimaProvaProgetto/Presentation/StringModifier.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PrimaProvaProgetto.Presentation +{ + class StringModifier : TextBox, IModifierControl + { + public object MyValue + { + get { return Text; } + set { Text = (string)value; } + } + } +} diff --git a/PrimaProvaProgetto/PresentationDiagram.cd b/PrimaProvaProgetto/PresentationDiagram.cd new file mode 100644 index 0000000..40ff06c --- /dev/null +++ b/PrimaProvaProgetto/PresentationDiagram.cd @@ -0,0 +1,147 @@ + + + + + + + + + CiIAAAAABCAAABABCACAIAICAAAEAgQQBAAAQDgAADI= + Presentation\CaposalaForm.cs + + + + + + + + + ACAFAgAABgAQAAAAAAAgACABQIgBAAAAAACAAAAAAAA= + Presentation\CaposalaFormPresenter.cs + + + + + + + + + + + + IgAABABAHSAAERQAAgGAFgQOQRUAAQEQAABgAAAEACA= + Presentation\ClientiForm.cs + + + + + + AAAAAAAAIAAEAAAAAAAAACAAQAIAAAAAAAAAAAAAAAA= + Presentation\ClientiFormSelezioneMenuPresenter.cs + + + + + + + + + AAAACAAAAAAAAAAACAAAACAAQAgAAEAAAABAAADAgAA= + Presentation\ClientiFormTempiAttesaPresenter.cs + + + + + + + + + + + + AAAAAAAIASAAAAAAAACAAAACAECAAAAAAAAAAQAAEAA= + Presentation\FirstWindowForm.cs + + + + + + AAAAIAAEAAAAAAAAAAAAACAAQAAAAAAAAAAAAAEQAAA= + Presentation\FirstWindowFormPresenter.cs + + + + + + + + + + + + DACLQ/0wgCAQUBYRQACygAkaKEBgAgAAAggBFxBAwH8= + Presentation\LayoutForm.cs + + + + + + AAACAAAAAAAEAAAAAAAAACAAQAAAAAIAAEAAAAAAAAA= + Presentation\LayoutFormPresenter.cs + + + + + + + + + CABAAAAQACAAABAAAACQCABCAAAAAQAAAAAAAAAAACA= + Presentation\MenuForm.cs + + + + + + ACAAAAAAAgAABAACAAAAECAAQAAAAAAAgAAAAAAgCAA= + Presentation\MenuFormPresenter.cs + + + + + + + + + + + AAAAAABAACAAAAAAAACQAAASAIAAAQAAAAAAAAAAADA= + Presentation\ModifierForm.cs + + + + + + AAAAAAAAAAABgAAAAAAAACAAQAAABAIAEAAAAAAAAAA= + Presentation\ModifierFormPresenter.cs + + + + + + + + + AAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + Presentation\DataGridViewExtensions.cs + + + + + + AAAAQAAAASAAUBAAAACAAAACAAAAAAQCAQACAEAAQAA= + Presentation\InserimentoPrenotazioneForm.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/PrevisioneDiagram.cd b/PrimaProvaProgetto/PrevisioneDiagram.cd new file mode 100644 index 0000000..afe5f49 --- /dev/null +++ b/PrimaProvaProgetto/PrevisioneDiagram.cd @@ -0,0 +1,49 @@ + + + + + + AAAEAAIAAAAAAAAAAAAAAAAADEAAAIAAAAAAAQAEAAg= + Model\Previsione.cs + + + + + + + + + + + + AAAAgAAAAAAQAAAAAAAAQAACEAAAAAAAAAAAgEAAAAA= + Model\TempoPermanenza.cs + + + + + + AAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAA= + Model\AlgoritmoPrevisioneFactory.cs + + + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAA= + Model\AlgoritmoPrevisioneSemplice.cs + + + + + + + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAA= + Model\IAlgoritmoPrevisione.cs + + + + \ No newline at end of file diff --git a/PrimaProvaProgetto/PrimaProvaProgetto.csproj b/PrimaProvaProgetto/PrimaProvaProgetto.csproj index c3c6eaa..68c6c04 100644 --- a/PrimaProvaProgetto/PrimaProvaProgetto.csproj +++ b/PrimaProvaProgetto/PrimaProvaProgetto.csproj @@ -33,6 +33,10 @@ 4 + + ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll + True + @@ -52,45 +56,91 @@ - + + + + + - + + + + UserControl AllergeniModifier.cs + + Form + + + CaposalaForm.cs + + UserControl CategoriaModifier.cs + + Form + + + ClientiForm.cs + + + + Form FirstWindowForm.cs + + + + Form + + + InserimentoPrenotazioneForm.cs + + + Component + + + Form + + + LayoutForm.cs + + Form MenuForm.cs - - UserControl + + + Form - - MoneyModifier.cs + + ModifierForm.cs + + + + Component UserControl @@ -98,6 +148,10 @@ PietanzaControl.cs + + Component + + @@ -113,17 +167,29 @@ AllergeniModifier.cs + + CaposalaForm.cs + CategoriaModifier.cs + + ClientiForm.cs + FirstWindowForm.cs + + InserimentoPrenotazioneForm.cs + + + LayoutForm.cs + MenuForm.cs - - MoneyModifier.cs + + ModifierForm.cs PietanzaControl.cs @@ -136,10 +202,18 @@ True Resources.resx + True Test.cs + + + + + + + SettingsSingleFileGenerator Settings.Designer.cs @@ -153,6 +227,15 @@ + + + + + + + + + + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -109,9 +112,31 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\4 posti.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\6 posti.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\2 posti oriz.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\parkiet_dab_gestreift.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\8 posti.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\4 posti.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\Wood Floor install.JPG;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/PrimaProvaProgetto/Resources/2 posti oriz.png b/PrimaProvaProgetto/Resources/2 posti oriz.png new file mode 100644 index 0000000..149c86c Binary files /dev/null and b/PrimaProvaProgetto/Resources/2 posti oriz.png differ diff --git a/PrimaProvaProgetto/Resources/4 posti.jpg b/PrimaProvaProgetto/Resources/4 posti.jpg new file mode 100644 index 0000000..10e9308 Binary files /dev/null and b/PrimaProvaProgetto/Resources/4 posti.jpg differ diff --git a/PrimaProvaProgetto/Resources/4 posti.png b/PrimaProvaProgetto/Resources/4 posti.png new file mode 100644 index 0000000..a01f6fe Binary files /dev/null and b/PrimaProvaProgetto/Resources/4 posti.png differ diff --git a/PrimaProvaProgetto/Resources/6 posti.png b/PrimaProvaProgetto/Resources/6 posti.png new file mode 100644 index 0000000..21f2c72 Binary files /dev/null and b/PrimaProvaProgetto/Resources/6 posti.png differ diff --git a/PrimaProvaProgetto/Resources/8 posti.png b/PrimaProvaProgetto/Resources/8 posti.png new file mode 100644 index 0000000..3e48a26 Binary files /dev/null and b/PrimaProvaProgetto/Resources/8 posti.png differ diff --git a/PrimaProvaProgetto/Resources/Wood Floor install.JPG b/PrimaProvaProgetto/Resources/Wood Floor install.JPG new file mode 100644 index 0000000..6eda90e Binary files /dev/null and b/PrimaProvaProgetto/Resources/Wood Floor install.JPG differ diff --git a/PrimaProvaProgetto/Resources/parkiet_dab_gestreift.jpg b/PrimaProvaProgetto/Resources/parkiet_dab_gestreift.jpg new file mode 100644 index 0000000..ca20f70 Binary files /dev/null and b/PrimaProvaProgetto/Resources/parkiet_dab_gestreift.jpg differ diff --git a/PrimaProvaProgetto/Tests/AlgoritmoPrevisioneFactoryTest.cs b/PrimaProvaProgetto/Tests/AlgoritmoPrevisioneFactoryTest.cs index a98499e..ede652e 100644 --- a/PrimaProvaProgetto/Tests/AlgoritmoPrevisioneFactoryTest.cs +++ b/PrimaProvaProgetto/Tests/AlgoritmoPrevisioneFactoryTest.cs @@ -12,6 +12,7 @@ class AlgoritmoPrevisioneFactoryTest { public static void Test() { + Console.WriteLine("---------- ALGORITMO PREVISIONE FACTORY TEST ----------"); List lista = AlgoritmoPrevisioneFactory.GetAlgoritmiDisponibili(); foreach (string a in lista) Console.WriteLine(a); @@ -29,6 +30,7 @@ public static void Test() TimeSpan ts = alg.OttieniPrevisione(tps, 2); Console.WriteLine(ts.TotalMinutes); + Console.WriteLine("--------------------------------"); } } diff --git a/PrimaProvaProgetto/Tests/CriteriDiSelezioneTest.cs b/PrimaProvaProgetto/Tests/CriteriDiSelezioneTest.cs index 13ff68f..65ded04 100644 --- a/PrimaProvaProgetto/Tests/CriteriDiSelezioneTest.cs +++ b/PrimaProvaProgetto/Tests/CriteriDiSelezioneTest.cs @@ -11,7 +11,7 @@ class CriteriDiSelezioneTest { public static void Test() { - Ristorante rist = Ristorante.GetInstance(); + LocaleRistorazione rist = LocaleRistorazione.GetInstance(); List allergeniLasagne = new List(); allergeniLasagne.Add(new Allergene("Latticini")); rist.Menu.Add(new Pietanza("Lasagna alla bolognese", 7.5m, Categoria.Primo, allergeniLasagne)); @@ -47,7 +47,7 @@ public static void Test() new CriterioDiSelezioneByNotContainsAllergene(new Allergene("Latticini"))) .GetPietanze() .ForEach(p => Console.WriteLine(p + Environment.NewLine)); - + Console.WriteLine("--------------------------------"); } } diff --git a/PrimaProvaProgetto/Tests/MoneyTest.cs b/PrimaProvaProgetto/Tests/MoneyTest.cs index d351cd6..9d86033 100644 --- a/PrimaProvaProgetto/Tests/MoneyTest.cs +++ b/PrimaProvaProgetto/Tests/MoneyTest.cs @@ -22,7 +22,7 @@ public static void Test() Console.WriteLine("m1 == 1.3 --> " + (m1 == 1.3m)); Console.WriteLine("m2 == 3.5 --> " + (m2 == 3.5m)); Console.WriteLine("m1 == 10 --> " + (m1 == 10m)); - + Console.WriteLine("--------------------------------"); } } diff --git a/PrimaProvaProgetto/Tests/PietanzaTest.cs b/PrimaProvaProgetto/Tests/PietanzaTest.cs index c2908d8..e08b429 100644 --- a/PrimaProvaProgetto/Tests/PietanzaTest.cs +++ b/PrimaProvaProgetto/Tests/PietanzaTest.cs @@ -19,7 +19,7 @@ public static void Test() foreach (Pietanza pietanza in p) Console.WriteLine(pietanza + Environment.NewLine); - + Console.WriteLine("--------------------------------"); } } } diff --git a/PrimaProvaProgetto/Tests/Test.Designer.cs b/PrimaProvaProgetto/Tests/Test.Designer.cs index fcc9a0f..8095a76 100644 --- a/PrimaProvaProgetto/Tests/Test.Designer.cs +++ b/PrimaProvaProgetto/Tests/Test.Designer.cs @@ -28,23 +28,93 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.moneyModifier1 = new PrimaProvaProgetto.Presentation.MoneyModifier(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); this.SuspendLayout(); // - // moneyModifier1 + // button1 // - this.moneyModifier1.AutoSize = true; - this.moneyModifier1.Location = new System.Drawing.Point(212, 147); - this.moneyModifier1.Name = "moneyModifier1"; - this.moneyModifier1.Size = new System.Drawing.Size(123, 28); - this.moneyModifier1.TabIndex = 0; + this.button1.Location = new System.Drawing.Point(35, 297); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 30); + this.button1.TabIndex = 0; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox1 + // + this.textBox1.Location = new System.Drawing.Point(26, 42); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.Size = new System.Drawing.Size(173, 195); + this.textBox1.TabIndex = 1; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(26, 16); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(71, 20); + this.label1.TabIndex = 2; + this.label1.Text = "Pietanza"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(245, 16); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(103, 20); + this.label2.TabIndex = 5; + this.label2.Text = "Prenotazione"; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(245, 42); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.ReadOnly = true; + this.textBox2.Size = new System.Drawing.Size(173, 195); + this.textBox2.TabIndex = 4; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(254, 297); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(75, 30); + this.button2.TabIndex = 3; + this.button2.Text = "button2"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(155, 460); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(75, 23); + this.button3.TabIndex = 6; + this.button3.Text = "button3"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); // // Test // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(451, 471); - this.Controls.Add(this.moneyModifier1); + this.ClientSize = new System.Drawing.Size(461, 554); + this.Controls.Add(this.button3); + this.Controls.Add(this.label2); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.button2); + this.Controls.Add(this.label1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.button1); this.Name = "Test"; this.Text = "Test"; this.ResumeLayout(false); @@ -54,6 +124,12 @@ private void InitializeComponent() #endregion - private Presentation.MoneyModifier moneyModifier1; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; } } \ No newline at end of file diff --git a/PrimaProvaProgetto/Tests/Test.cs b/PrimaProvaProgetto/Tests/Test.cs index f4d29fb..737a1b6 100644 --- a/PrimaProvaProgetto/Tests/Test.cs +++ b/PrimaProvaProgetto/Tests/Test.cs @@ -14,6 +14,12 @@ namespace PrimaProvaProgetto.Tests { public partial class Test : Form { + Pietanza piet = new Pietanza("primissimo piatto", + 4.5m, Categoria.Antipasto, new List()); + Prenotazione pren = new Prenotazione("NomeCognome1", "123 4567890", 5); + + List pietanze = new List(); + public Test() { InitializeComponent(); @@ -32,7 +38,67 @@ public Test() //List la = am.Allergeni; - + //Controls.Add(new MoneyModifier()); + + for (int i = 0; i < 10; i++) + { + Pietanza p = new Pietanza( + "Piatto" + i, + 3m + (decimal)i, + Categoria.Contorno, + new List(), + "descrizione" + i, + i % 2 == 1); + pietanze.Add(p); + } + + textBox1.Text = piet.ToString(); + textBox2.Text = pren.ToString(); + } + + private void button1_Click(object sender, EventArgs e) + { + ModifierForm f = new ModifierForm(); + ModifierFormPresenter mfp = new ModifierFormPresenter(f); + + mfp.SetEditableObject(piet); + if(f.ShowDialog() == DialogResult.OK) + textBox1.Text = piet.ToString(); + } + + private void button2_Click(object sender, EventArgs e) + { + ModifierForm f = new ModifierForm(); + ModifierFormPresenter mfp = new ModifierFormPresenter(f); + + mfp.SetEditableObject(pren); + if (f.ShowDialog() == DialogResult.OK) + textBox2.Text = pren.ToString(); + } + + private void button3_Click(object sender, EventArgs e) + { + + MenuForm mf = new MenuForm(); + mf.Show(); + foreach(Pietanza p in pietanze) + { + PietanzaControl pc = new PietanzaControl(); + pc.Pietanza = p; + mf.TableLayoutPanel.Controls.Add(pc, 0, mf.TableLayoutPanel.RowCount++ - 2); + //mf.TableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.AutoSize)); + pc.Modifica.Click += buttonModifica_Click; + } + + } + + private void buttonModifica_Click(object sender, EventArgs e) + { + ModifierForm f = new ModifierForm(); + ModifierFormPresenter mfp = new ModifierFormPresenter(f); + + mfp.SetEditableObject(((ToolStripMenuItem)sender).Tag); + f.ShowDialog(); } } } diff --git a/PrimaProvaProgetto/packages.config b/PrimaProvaProgetto/packages.config new file mode 100644 index 0000000..810e559 --- /dev/null +++ b/PrimaProvaProgetto/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/README.md b/README.md index 7d1c7bb..0f453d2 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# PrimaProvaProgetto +# Totem4Food + +Progetto per il corso di Ingegneria del Software T all'Università di Bologna, corso di studi in Ingegneria Informatica.