public frmDetEquipe(frmGesEquipe frm) { InitializeComponent(); frmGes = frm; inifrmDetEquipe(); btnSupprimer.Enabled = false; //this.btnCopier.Visible = false; //this.btnAnnuler.Location = new Point(841, 360); //this.btnSupprimer.Location = new Point(240, 360); //this.btnActiverModif.Location = new Point(125, 360); //this.btnEnregistrer.Location = new Point(10, 360); //dicTypeTest = new Dictionary<string, tblTypeTest>(); //lstEmployeEquipe = new List<tblEmploye>(); //load.loadBaseDonnee(); //load.TempLoad(cboxChefEquipe, cboxProjet, lstTreeTypeTest, lstTreeEmploye); //btnAjoutTypeTest.Click += new EventHandler(btnAjoutTypeTest_Click); //btnRetirerTypeTest.Click += new EventHandler(btnRetirerTypeTest_Click); //btnAjoutEmploye.Click += new EventHandler(btnAjoutEmploye_Click); //btnRetirerEmploye.Click += new EventHandler(btnRetirerEmploye_Click); //btnEnregistrer.Click += new EventHandler(Enregistrer_Click); //cboxFiltre.SelectedIndexChanged += new EventHandler(cBoxFiltreTest_Change); remplirChefEquipe(); remplirEmploye(); remplirTypeTest(); }
public frmDetEquipe(frmGesEquipe frm) { InitializeComponent(); frmGes = frm; inifrmDetEquipe(); btnSupprimer.Enabled = false; remplirChefEquipe(); remplirEmploye(); remplirTypeTest(); remplirProjet(); }
public frmDetEquipe(frmGesEquipe frm, tblEquipe equipeSelect) { InitializeComponent(); frmGes = frm; inifrmDetEquipe(); equipeAModifier = equipeSelect; lvlAcces = frm.lvlAcces;// ** ModifEnabled = false; btnActiverModif.Enabled = true; foreach (var item in equipeSelect.tblEmploye1) { TreeNode tmp = new TreeNode(); tmp.Text = item.PrenomEmp + " " + item.NomEmp; tmp.Tag = item; lstTreeSelectEmploye.Nodes.Add(tmp); lstEmployeEquipe.Add(item); } foreach (var item in equipeSelect.tblTypeTest) { TreeNode tmp = new TreeNode(); tmp.Text = item.NomTypeTest; tmp.Tag = item; lstTreeSelectTest.Nodes.Add(tmp); } rTxtCommentaire.Text = equipeSelect.CommentaireEquipe; remplirChefEquipe(); remplirEmploye(); remplirTypeTest(); remplirProjet(); tblEmploye cheftmp = rEquipeSQL.getChefEquipe(equipeSelect.IdChefEquipe); cboxChefEquipe.Text = cheftmp.PrenomEmp + " " + cheftmp.NomEmp; cboxProjet.Text = equipeSelect.CodeProjet; txtNomEquipe.Text = equipeSelect.NomEquipe; btnAjoutEmploye.Enabled = false; btnAjoutTypeTest.Enabled = false; btnEnregistrer.Enabled = false; btnRetirerEmploye.Enabled = false; btnRetirerTypeTest.Enabled = false; cboxChefEquipe.Enabled = false; cboxProjet.Enabled = false; txtNomEquipe.Enabled = false; rTxtCommentaire.Enabled = false; checkLvlAcces();// ** }
// avec authentification ** public frmDetEquipe(frmGesEquipe frm) { InitializeComponent(); lvlAcces = frm.lvlAcces;// ** frmGes = frm; inifrmDetEquipe(); btnSupprimer.Enabled = false; remplirChefEquipe(); remplirEmploye(); remplirTypeTest(); remplirProjet(); checkLvlAcces();// ** }
private void toolStripGesEquipe_Click(object sender, EventArgs e) { var formOuvert = new frmGesEquipe(UserNm); this.Hide(); formOuvert.Show(); formOuvert.Closed += (s, args) => this.Close(); }