private void CreaGruppo_Click(object sender, EventArgs e) { GruppoForm gruppoForm = new GruppoForm(); GruppoFormPresenter gruppoFormPresenter = new GruppoFormPresenter(gruppoForm, Utente, null); gruppoFormPresenter.Attach(this); gruppoForm.ShowDialog(); }
private void ModificaGruppo_Click(object sender, EventArgs e) { GruppoForm gruppoForm = new GruppoForm(); GruppoFormPresenter gruppoFormPresenter = new GruppoFormPresenter(gruppoForm, Utente, (Gruppo)MainForm.GruppiListBox.SelectedItem); gruppoFormPresenter.Attach(this); gruppoForm.ShowDialog(); }