void ShowAppointment() { var cdv = new CalendarDetailView(this.myController.SelectedAppointment); cdv.FormClosed += cdv_FormClosed; cdv.Show(); }
void ShowAppointment() { if (this.SelectedAppointment == null) { return; } var cdv = new CalendarDetailView(this.SelectedAppointment); cdv.Show(); }
private void OpenTermin() { if (mySelectedTermin == null) { return; } CalendarDetailView cdv = new CalendarDetailView(mySelectedTermin); cdv.ShowDialog(); dayView.Invalidate(); }
private void ctxmnuAddTermin_Click(object sender, EventArgs e) { UserSearchView usv = new UserSearchView(); usv.ShowDialog(); if (usv.DialogResult == System.Windows.Forms.DialogResult.OK && usv.SelectedUser != null) { CalendarDetailView cdv = new CalendarDetailView(AddTermin(usv.SelectedUser)); cdv.Show(); } }