Esempio n. 1
0
 public CtrlAddCollabo(FrmList windowParent)
 {
     this.collaborateur = new Collaborateur();
     this.windowParent  = windowParent;
     this.window        = new FrmDetailCollabo();
     initWindow();
     initListener();
     this.window.ShowDialog();
 }
Esempio n. 2
0
        private void initWindow()
        {
            this.window            = new FrmList();
            this.window.MdiParent  = this.parent;
            this.window.Text       = "Liste des Collaborateurs";
            this.source.DataSource = Collaborateurs.getCollaborateurs().ListCollaborateur;
            this.initGrid(this.source);
            this.window.dgv.SelectionChanged += new EventHandler(selectionChanged);
            this.window.dgv.CellDoubleClick  += new DataGridViewCellEventHandler(showDetail);
            this.window.buttonRight.Click    += new EventHandler(showDetail);
            this.window.buttonCenter.Click   += new EventHandler(showUpdate);
            this.window.buttonLeft.Click     += new EventHandler(showAdd);


            this.window.buttonRight.Text  = "Détail";
            this.window.buttonCenter.Text = "Modifier";
            this.window.buttonLeft.Text   = "Ajouter";


            this.window.Show();
        }