public frmGesTheme() { InitializeComponent(); gestionTheme = new ctrlTheme(); btnAjout.Click += new EventHandler(ajoutTheme_Click); btnDetails.Click += new EventHandler(detailTheme_Click); btnRecherche.Click += new EventHandler(btnRecherche_Click); btnX.Click += new EventHandler(btnX_Click); ButtonsVisible(true); }
public frmDetTheme(Theme C) { themeSelect = C; InitializeComponent(); this.PositionBtn(140); ctrltheme = new ctrlTheme(); this.btnEnregistrer.Click += new EventHandler(enregistrer); this.btnCopier.Click += new EventHandler(btnCopier_Click); this.btnActiverModif.Click += new EventHandler(btnActiverModification_Click); this.txtId.Enabled = false; }
// avec authentification public frmGesTheme(string _us) { order = 0; InitializeComponent(); gestionTheme = new ctrlTheme(); btnAjout.Click += new EventHandler(ajoutTheme_Click); btnDetails.Click += new EventHandler(detailTheme_Click); btnRecherche.Click += new EventHandler(btnRecherche_Click); btnX.Click += new EventHandler(btnX_Click); txtRecherche.KeyDown += new KeyEventHandler(txtRecherche_KeyDown); ButtonsVisible(true); UserNm = _us; }
// avec authentification public frmDetTheme(int lvla) { InitializeComponent(); this.PositionBtn(140); ctrltheme = new ctrlTheme(); this.btnEnregistrer.Click += new EventHandler(enregistrer); this.btnSupprimer.Click += new EventHandler(btnSupprimer_Click); this.btnCopier.Click += new EventHandler(btnCopier_Click); this.btnActiverModif.Click += new EventHandler(btnActiverModification_Click); this.txtId.Enabled = false; exit = true; lvlAcces = lvla; checkLvlAcces(); }
private void update() { gestionTheme = new ctrlTheme(); var formOuvert = new frmGesTheme(); formOuvert.Show(); this.Hide(); formOuvert.Closed += (s, args) => this.Close(); }