public AnnotationsEditForm(EvenementEditForm owner, int Id, bool noAnnotation = false)
        {
            _id         = Id;
            _owner      = owner;
            FormClosed += new FormClosedEventHandler(AnnotationsEditForm_FormClosed);
            InitializeComponent();

            /* Combobox Opérateur */
            var dataSourceVendeur = new List <string>();

            dataSourceVendeur.Add("");
            foreach (string transfert in evenementProvider.GetOperateurs())
            {
                dataSourceVendeur.Add(transfert);
            }
            CbxOperateur.DataSource    = dataSourceVendeur;
            CbxOperateur.DisplayMember = "Operateur";

            if (noAnnotation == true)
            {
                /* desactive la zone de saisie des annotations */
                TxtCommentaire.Enabled = false;
                CbxOperateur.Enabled   = false;
                BtnSave.Enabled        = false;
            }
        }
Beispiel #2
0
 private void UpdatePostIt()
 {
     if (dgvEvenements.RowCount > 0)
     {
         int ID = int.Parse(dgvEvenements.CurrentRow.Cells[0].Value.ToString());
         idRetour = ID;
         EvenementEditForm frm = new EvenementEditForm(this, true, ID);
         frm.ShowDialog();
     }
 }
Beispiel #3
0
        private void NewPostIt()
        {
            EvenementEditForm frm = new EvenementEditForm(this, false);

            frm.ShowDialog();
        }