Example #1
0
 private void btnCreer_Click(object sender, EventArgs e)
 {
     using (frmGreen fenetre = new frmGreen())
     {
         this.Opacity = 0.5;
         fenetre.ShowDialog();
     }
     this.Opacity = 1;
 }
Example #2
0
 private void buttonInsert_Click(object sender, EventArgs e)
 {
     this.Opacity = 0.5;
     using (frmGreen fenetre = new frmGreen())
     {
         fenetre.ShowDialog();
         if (fenetre.DialogResult == DialogResult.OK)
         {
             this.Opacity       = 1;
             _RecordedSelection = new Selection(_DefaultSociete, _DefaultPoste, _DefaultRegion, _DefaultContrat, _DefaultJour);
             FillingDataGridView(_RecordedSelection);
             dataGridViewOffre.Rows[0].Selected = true;
             _RecordedId           = Convert.ToInt32(dataGridViewOffre.SelectedCells[5].Value);
             labelAction.Text      = ConstructLabelResultat(_RecordedId, CREE);
             labelAction.ForeColor = Color.OliveDrab;
         }
     }
     this.Opacity = 1;
 }