public void update() { gestionMode = new ctrlMode(); var formOuvert = new frmGesMode(); formOuvert.Show(); this.Hide(); formOuvert.Closed += (s, args) => this.Close(); }
public frmDetMode(Mode M) { InitializeComponent(); modeSelect = M; ctrlMo = new ctrlMode(); this.PositionBtn(260); this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click); this.btnCopier.Click += new EventHandler(btnCopier_Click); annuler = true; }
public frmGesMode() { InitializeComponent(); gestionMode = new ctrlMode(); this.btnAjout.Click += new EventHandler(ajoutMode_Click); this.btnDetails.Click += new EventHandler(detailsMode_Click); this.btnRecherche.Click += new EventHandler(btnRecherche_Click); this.btnX.Click += new EventHandler(btnX_Click); ButtonsVisible(true); }
public void update() { gestionMode = new ctrlMode(); ListSortDirection DD = ListSortDirection.Descending; if(dataGridMode.SortOrder == SortOrder.Ascending) DD = ListSortDirection.Ascending; var formOuvert = new frmGesMode(dataGridMode.SortedColumn.Index, this.Tag.ToString(), DD); formOuvert.Show(); this.Hide(); formOuvert.Closed += (s, args) => this.Close(); }
public frmDetMode() { InitializeComponent(); ctrlMo = new ctrlMode(); this.PositionBtn(260); this.txtNom.ReadOnly = false; this.rtxtDesc.ReadOnly = false; this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click); this.btnSupprimer.Click += new EventHandler(btnSupprimer_Click); this.btnCopier.Click += new EventHandler(btnCopier_Click); this.btnActiverModif.Click += new EventHandler(btnActiverModif_Click); annuler = true; }
public frmGesMode() { InitializeComponent(); gestionMode = new ctrlMode(); this.btnAjout.Click += new EventHandler(ajoutMode_Click); this.btnDetails.Click += new EventHandler(detailsMode_Click); this.btnRecherche.Click += new EventHandler(btnRecherche_Click); this.btnX.Click += new EventHandler(btnX_Click); this.txtRecherche.KeyDown += new KeyEventHandler(txtRecherche_KeyDown); ButtonsVisible(true); CreerGrid(); dataGridMode.Sort(dataGridMode.Columns[1], ListSortDirection.Ascending); }
public frmDetMode(Mode M, int lvlAc) { InitializeComponent(); modeSelect = M; ctrlMo = new ctrlMode(); ctrlMo.charger(); ctrlMo.Statut = false; this.PositionBtn(260); this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click); this.btnCopier.Click += new EventHandler(btnCopier_Click); annuler = true; lvlAcces = lvlAc; checkLvlAcces(); }
public void update() { gestionMode = new ctrlMode(); int colum = dataGridMode.SortedColumn.Index; ListSortDirection DD = ListSortDirection.Descending; if(dataGridMode.SortOrder == SortOrder.Ascending) DD = ListSortDirection.Ascending; dataGridMode.Rows.Clear(); chargeDonnees(); dataGridMode.Sort(dataGridMode.Columns[colum], DD); int R = RowsByNm(this.Tag.ToString()); dataGridMode.Rows[R].Cells[1].Selected = true; dataGridMode.Rows[R].Selected = true; }
public frmGesMode(int F, string Nm, ListSortDirection S) { InitializeComponent(); gestionMode = new ctrlMode(); this.btnAjout.Click += new EventHandler(ajoutMode_Click); this.btnDetails.Click += new EventHandler(detailsMode_Click); this.btnRecherche.Click += new EventHandler(btnRecherche_Click); this.btnX.Click += new EventHandler(btnX_Click); this.txtRecherche.KeyDown += new KeyEventHandler(txtRecherche_KeyDown); ButtonsVisible(true); CreerGrid(); dataGridMode.Sort(dataGridMode.Columns[F], S); int R = RowsByNm(Nm); dataGridMode.Rows[R].Selected = true; dataGridMode.Rows[R].Cells[1].Selected = true; }