Esempio n. 1
0
        private void ctxMenu_Edit_Click(object sender, RoutedEventArgs e)
        {
            if (this.contactValue == null)
            {
                return;
            }
            ScreenContactEdit screenContactEdit = new ScreenContactEdit(this.contactValue, null);

            Win32ServiceManager.SharedManager.Win32ScreenService.Show(screenContactEdit);
        }
        private void ctxMenu_AddToContacts_Click(object sender, RoutedEventArgs e)
        {
            Contact contact = new Contact();

            contact.UriString   = [email protected];
            contact.DisplayName = UriUtils.GetUserName(contact.UriString);
            ScreenContactEdit screenEditContact = new ScreenContactEdit(contact, null);

            screenEditContact.EditMode = false;
            screenEditContact.Tag      = this.@event;
            Win32ServiceManager.SharedManager.Win32ScreenService.Show(screenEditContact);
        }
Esempio n. 3
0
        private void MenuItemEAB_Click(object sender, RoutedEventArgs e)
        {
            MenuItem menuItem = e.OriginalSource as MenuItem;

            if (menuItem == null)
            {
                return;
            }

            if (menuItem == this.MenuItemEAB_Refresh)
            {
                this.contactService.Download();
            }
            else if (menuItem == this.MenuItemEAB_Reset)
            {
            }
            else if (menuItem == this.MenuItemEAB_AddContact)
            {
                ScreenContactEdit screenEditContact = new ScreenContactEdit(null, null);
                this.screenService.Show(screenEditContact);
            }
            else if (menuItem == this.MenuItemEAB_EditContact)
            {
            }
            else if (menuItem == this.MenuItemEAB_DeleteContact)
            {
            }
            else if (menuItem == this.MenuItemEAB_AddGroup)
            {
                ScreenGroupEdit screenGroupEdit = new ScreenGroupEdit(null);
                this.screenService.Show(screenGroupEdit);
            }
            else if (menuItem == this.MenuItemEAB_EditGroup)
            {
            }
            else if (menuItem == this.MenuItemEAB_DeleteGroup)
            {
            }
            else if (menuItem == this.MenuItemEAB_Authorizations)
            {
                this.screenService.ScreenWatchers.Watchers = this.watchers;
                this.screenService.Show(ScreenType.Authorizations);
            }
        }
Esempio n. 4
0
        private void ctxMenu_AddContact_Click(object sender, RoutedEventArgs e)
        {
            ScreenContactEdit screenEditContact = new ScreenContactEdit(null, this.group);

            Win32ServiceManager.SharedManager.Win32ScreenService.Show(screenEditContact);
        }