Example #1
0
 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);
 }
Example #2
0
 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;
 }
Example #3
0
 //      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;
 }
Example #4
0
 //      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();
 }
Example #5
0
 private void update()
 {
     gestionTheme = new ctrlTheme();
     var formOuvert = new frmGesTheme();
     formOuvert.Show();
     this.Hide();
     formOuvert.Closed += (s, args) => this.Close();
 }