private void SubjectClick() { _subject = new MostraSubject(); MostraSubjectPresenter p = new MostraSubjectPresenter(_subject); MainPage.TableLayoutPanel.Controls.Clear(); MainPage.TableLayoutPanel.Controls.Add(_subject); }
public MostraSubjectPresenter(MostraSubject element) : base(element) { _listaFiltrata = FGManager.Instance.CostumerRiepilogue.GetAll.ToList(); _listaFiltri = new List <IFilterCostumer>(); PopulateView(); View.RimuoviCliente.Click += OnRimuoviCliente; View.ClearFilter.Click += onClearFilter; View.ApplyFilter.Click += onApplyFilterClick; View.AggiungiSubject.Click += OnAddSubject; FGManager.Instance.CostumerRiepilogue.GetAll.CollectionChanged += onAddedCustumer; }
public MainPagePresenter(MainPage view) : base(view) { _homeList = new HomeList(); _selectProduct = new SelezionaProdotti(); _subject = new MostraSubject(); _fatture = new MostraFatture(); _noleggi = new MostraNoleggi(); MainPage.HomeLabel.Click += onHomeClick; MainPage.SearchLabelFatture.Click += onSearchLabelFattureClick; MainPage.SearchLabelRent.Click += onSearchLabelRentClick; MainPage.SearchSubjectLabel.Click += onSearchLabelSubjectClick; MainPage.SelectProductLabel.Click += onSelectProductLabelClick; MainPage.UserLabel.Click += onUserLabelClick; //a default si apre la Home HomeClick(); }