void MoveAppointment() { var usv = new UserSearchView(); if (usv.ShowDialog() == DialogResult.OK && usv.SelectedUser != null) { ModelManager.AppointmentService.MoveAppointment(appointment: this.myController.SelectedAppointment, toUser: usv.SelectedUser); } }
void mbtnSetForUser_Click(object sender, EventArgs e) { var usv = new UserSearchView(); if (usv.ShowDialog() == DialogResult.OK) { this.myCalendarSettings.SetTargetUser(usv.SelectedUser); this.mtxtForUser.Text = usv.SelectedUser.NameFull; } }
void mlnkKundeInformiertVon_Click(object sender, EventArgs e) { var usv = new UserSearchView(); usv.ShowDialog(this); if (usv.DialogResult == System.Windows.Forms.DialogResult.OK) { this.mySoftwareUpgrade.KundeInformiertVonId = usv.SelectedUser.UID; this.mlnkKundeInformiertVon.Text = usv.SelectedUser.NameFull; } }
void mlnkLieferungZumKundenDurch_Click(object sender, EventArgs e) { var usv = new UserSearchView(); usv.ShowDialog(this); if (usv.DialogResult == DialogResult.OK && usv.SelectedUser != null) { this.mlnkLieferungZumKundenDurch.Text = usv.SelectedUser.NameFull; this.myMaschinenauftrag.LieferungZumKundenDurchId = usv.SelectedUser.UID; } }
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(); } }
void AddLinkToUser() { var usv = new UserSearchView(); if (usv.ShowDialog() == DialogResult.OK && usv.SelectedUser != null) { var user = usv.SelectedUser; var msg = string.Format("Ich verknüpfe den Termin mit '{0}'.", user.NameFull); MetroMessageBox.Show(this, msg, "Verknüpfen mit Mitarbeiter", MessageBoxButtons.OK, MessageBoxIcon.Information); ModelManager.AppointmentService.AddLinkedItemToAppointment(this.myAppointment, user.UID, "Mitarbeiter"); this.dgvLinkedItems.Sort(this.dgvLinkedItems.Columns[0], System.ComponentModel.ListSortDirection.Ascending); } }
void mlblBcc_Click(object sender, EventArgs e) { var usv = new UserSearchView(); if (usv.ShowDialog() == DialogResult.OK) { if (this.myBccList == null) { this.myBccList = new List <string>(); } this.myBccList.Add(usv.SelectedUser.EmailWork); } this.UpdateBccTextbox(); }
private void mbtnPreloadUserCalendars_Click(object sender, EventArgs e) { var usv = new UserSearchView(); if (usv.ShowDialog() == DialogResult.OK) { var userList = usv.SelectedUsers; if (userList.Count > 0) { var userCals = new string[userList.Count]; for (int i = 0; i < userList.Count; i++) { userCals[i] = userList[i].UID; } CatalistRegistry.CalendarSettings.SetPreloadUserList(userCals); } } }