//Ajouter une fonction private void buttonAddFonction_Click(object sender, EventArgs e) { FenCrudFctElect.etat = FenCrudFctElect.state.ajouter; FenCrudFctElect formCrudElec = new FenCrudFctElect(); formCrudElec.ShowDialog(); }
private void buttonUpdateFonction_Click(object sender, EventArgs e) { if (this.fctPrivate.projet != null) { FenCrudFctElect.etat = FenCrudFctElect.state.modifier; IhmManager.ajouterFonctionElect = false; IhmManager.fctElectSelect = this.fctPrivate; FenCrudFctElect formCrudElec = new FenCrudFctElect(); formCrudElec.ShowDialog(); } }
private void buttonVoir_Click(object sender, EventArgs e) { if (this.listBox1.SelectedItem != null && this.listBox1.SelectedItem.GetType() == IhmManager.fctElectSelect.GetType()) { FenCrudFctElect.etat = FenCrudFctElect.state.modifier; IhmManager.ajouterFonctionElect = false; IhmManager.fctElectSelect = (FonctionElectronique )this.listBox1.SelectedItem; FenCrudFctElect formCrudElec = new FenCrudFctElect(); formCrudElec.ShowDialog(); IhmManager.listFctElct = this.fctManager.getListFonction("en_attente=true"); this.listBox1.DataSource = IhmManager.listFctElct; } }