Ejemplo n.º 1
0
 public frmDetGenre(Genre G)
 {
     InitializeComponent();
     genreSelect = G;
     ctrlGen = new ctrlGenre();
     this.PositionBtn(260);
     this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click);
     this.btnCopier.Click += new EventHandler(btnCopier_Click);
     annuler = true;
 }
Ejemplo n.º 2
0
 public void update()
 {
     gestionGenre = new ctrlGenre();
     ListSortDirection DD = ListSortDirection.Descending;
     if (GridGenre.SortOrder == SortOrder.Ascending)
         DD = ListSortDirection.Ascending;
     var formOuvert = new frmGesGenre(GridGenre.SortedColumn.Index, this.Tag.ToString(), DD);
     formOuvert.Show();
     this.Hide();
     formOuvert.Closed += (s, args) => this.Close();
 }
Ejemplo n.º 3
0
 public frmDetGenre()
 {
     InitializeComponent();
     ctrlGen = new ctrlGenre();
     this.PositionBtn(260);
     this.txtNom.ReadOnly = false;
     this.rtxtCom.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;
 }
Ejemplo n.º 4
0
 public frmGesGenre()
 {
     InitializeComponent();
     gestionGenre = new ctrlGenre();
     this.btnAjout.Click += new EventHandler(ajoutGenre_click);
     this.btnDetails.Click += new EventHandler(detailsGenre_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();
     GridGenre.Sort(GridGenre.Columns[1], ListSortDirection.Ascending);
 }
Ejemplo n.º 5
0
 public frmDetGenre(Genre G, int lvla)
 {
     InitializeComponent();
     genreSelect = G;
     ctrlGen = new ctrlGenre();
     ctrlGen.charger();
     ctrlGen.Statut = false;
     this.PositionBtn(260);
     this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click);
     this.btnCopier.Visible = false;
     lvlAcces = lvla;
     checkLvlAcces();
     annuler = true;
 }
Ejemplo n.º 6
0
        public void update()
        {
            gestionGenre = new ctrlGenre();
            int colum = GridGenre.SortedColumn.Index;
            ListSortDirection DD = ListSortDirection.Descending;
            if (GridGenre.SortOrder == SortOrder.Ascending)
                DD = ListSortDirection.Ascending;

            GridGenre.Rows.Clear();
            chargeDonnees();
            GridGenre.Sort(GridGenre.Columns[colum], DD);
            int R = RowsByNm(this.Tag.ToString());
            GridGenre.Rows[R].Cells[1].Selected = true;
            GridGenre.Rows[R].Selected = true;
        }
Ejemplo n.º 7
0
 //      avec authentification
 public frmDetGenre(int lvla)
 {
     InitializeComponent();
     ctrlGen = new ctrlGenre();
     ctrlGen.charger();
     this.PositionBtn(260);
     this.txtNom.ReadOnly = false;
     this.rtxtCom.ReadOnly = false;
     this.btnEnregistrer.Click += new EventHandler(btnEnregistrer_Click);
     this.btnSupprimer.Click += new EventHandler(btnSupprimer_Click);
     this.btnCopier.Visible = false;
     this.btnActiverModif.Click += new EventHandler(btnActiverModif_Click);
     annuler = true;
     lvlAcces = lvla;
     checkLvlAcces();
 }
Ejemplo n.º 8
0
 public frmGesGenre(int F, string Nm, ListSortDirection S)
 {
     InitializeComponent();
     gestionGenre = new ctrlGenre();
     this.btnAjout.Click += new EventHandler(ajoutGenre_click);
     this.btnDetails.Click += new EventHandler(detailsGenre_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();
     GridGenre.Sort(GridGenre.Columns[F], S);
     int R = RowsByNm(Nm);
     GridGenre.Rows[R].Selected = true;
     GridGenre.Rows[R].Cells[1].Selected = true;
 }
Ejemplo n.º 9
0
 public frmGesGenre(string _us)
 {
     InitializeComponent();
     gestionGenre = new ctrlGenre();
     this.btnAjout.Click += new EventHandler(ajoutGenre_click);
     this.btnDetails.Click += new EventHandler(detailsGenre_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();
     if (GridGenre.RowCount > 0)
     {
         GridGenre.Sort(GridGenre.Columns[1], ListSortDirection.Ascending);
         GridGenre.Rows[0].Selected = true;
         this.Tag = GridGenre.Rows[0].Cells[1].Value.ToString();
     }
     UserNm = _us;
     droitUser();
 }