Ejemplo n.º 1
0
        private void ShowDialogForm(MyAppointment label)
        {
            AppointmentForm frm = new AppointmentForm(label);

            frm.CheckSecurityForView();
            frm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void Goto(MyAppointment label)
        {
            //Hashtable h = new Hashtable();
            //h.Add("Id", label.Id);
            //h.Add("Appointment", label);
            //NavigateTo("Appointments", h);
            AppointmentForm frm = new AppointmentForm(label);

            frm.CheckSecurityForView();
            frm.ShowDialog();
        }
Ejemplo n.º 3
0
 private void CreateAppointment()
 {
     try
     {
         AppointmentForm frm = new AppointmentForm();
         frm.ShowDialog();
         frm.Dispose();
         MemoryHelper.ReduceMemory();
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Ejemplo n.º 4
0
 private void commandBar1_NewCommandPressed(object sender, EventArgs e)
 {
     //try
     //{
     //    Hashtable h = new Hashtable();
     //    h.Add("Id", _current.Id);
     //    h.Add("Customer", _current);
     //    base.NavigateTo("Appointments", h);
     //}
     //catch (AccessDeniedException)
     //{
     //    XtraMessageBox.Show("Impossibile accedere alla funzionalità richiesta. Accesso negato", "Errore", MessageBoxButtons.OK, MessageBoxIcon.Error);
     //}
     //catch (Exception ex)
     //{
     //    ErrorHandler.Show(ex);
     //}
     try
     {
         AppointmentForm frm = new AppointmentForm(_current);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (frm.Appointment != null)
             {
                 IBindingList g = gridView1.DataSource as IBindingList;
                 g.Add(frm.Appointment);
             }
         }
     }
     catch (AccessDeniedException)
     {
         XtraMessageBox.Show("Impossibile accedere alla funzionalità richiesta. Accesso negato", "Errore", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Ejemplo n.º 5
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     try
     {
         AppointmentForm frm = new AppointmentForm();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (frm.Appointment != null)
             {
                 IBindingList g = gridView1.DataSource as IBindingList;
                 g.Add(frm.Appointment);
             }
         }
     }
     catch (AccessDeniedException)
     {
         XtraMessageBox.Show("Impossibile accedere alla funzionalità richiesta. Accesso negato", "Errore", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     catch (Exception ex)
     {
         ErrorHandler.Show(ex);
     }
 }
Ejemplo n.º 6
0
        private void AppointmentButton_Click(object sender, RoutedEventArgs e)
        {
            AppointmentForm ap = new AppointmentForm();

            ap.ShowDialog();
        }