private void ShowDialogForm(MyAppointment label) { AppointmentForm frm = new AppointmentForm(label); frm.CheckSecurityForView(); frm.ShowDialog(); }
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(); }
private void CreateAppointment() { try { AppointmentForm frm = new AppointmentForm(); frm.ShowDialog(); frm.Dispose(); MemoryHelper.ReduceMemory(); } catch (Exception ex) { ErrorHandler.Show(ex); } }
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); } }
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); } }
private void AppointmentButton_Click(object sender, RoutedEventArgs e) { AppointmentForm ap = new AppointmentForm(); ap.ShowDialog(); }