Пример #1
0
        void MoveAppointment()
        {
            var usv = new UserSearchView();

            if (usv.ShowDialog() == DialogResult.OK && usv.SelectedUser != null)
            {
                ModelManager.AppointmentService.MoveAppointment(appointment: this.myController.SelectedAppointment, toUser: usv.SelectedUser);
            }
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        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;
            }
        }
Пример #4
0
        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;
            }
        }
Пример #5
0
        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();
            }
        }
Пример #6
0
        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);
            }
        }
Пример #7
0
        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();
        }
Пример #8
0
        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);
                }
            }
        }