예제 #1
0
        private void ShowDialogForm(CausaleAmministrativa label)
        {
            FormCausale frm = new FormCausale(label);

            frm.ShowDialog();
            frm.Dispose();
        }
예제 #2
0
 private void cmdNew_Click(object sender, EventArgs e)
 {
     try
     {
         FormCausale frm = new FormCausale(_type);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (frm.Current != null)
             {
                 IBindingList g = gridView1.DataSource as IBindingList;
                 g.Add(frm.Current);
             }
         }
         frm.Dispose();
     }
     catch (AccessDeniedException)
     {
         XtraMessageBox.Show("Impossibile accedere alla funzionalità richiesta. Accesso negato", "Errore", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }