Пример #1
0
 private void ShowConnectToServerUI()
 {
     if (!AddinSettingsForm.IsShown)
     {
         AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
         new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();
         addinSettingsForm.ShowDialog();
     }
 }
Пример #2
0
        private void Show_ConnectionDialog(object sender, RibbonControlEventArgs e)
        {
            AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
            new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();

            DialogResult result = addinSettingsForm.ShowDialog();
            if (result == DialogResult.OK)
            {
                //AddTaskPanes(); TODO: Sync all taskpanes
            }
        }
Пример #3
0
 public static void ActionXWordSettings()
 {
     AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
     new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();
     addinSettingsForm.ShowDialog();
 }
Пример #4
0
 private bool ShowConnectToServerUI()
 {
     if (AddinSettingsForm.IsShown == false)
     {
         AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
         new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();
         if (addinSettingsForm.ShowDialog() == DialogResult.OK)
         {
             return true;
         }
     }
     return false;
 }