Esempio n. 1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="addinSettingsForm">A reference to an <code>AddinSettingsForm</code> instance.</param>
 public AddinSettingsFormManager(ref AddinSettingsForm addinSettingsForm)
 {
     this.addinSettingsForm = addinSettingsForm;
     this.addinSettings = new XOfficeCommonSettings();
     this.addin = Globals.XWord2003AddIn;
     this.currentClientType = addin.ClientType;
 }
Esempio n. 2
0
 private void ShowConnectToServerUI()
 {
     if (!AddinSettingsForm.IsShown)
     {
         AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
         new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();
         addinSettingsForm.ShowDialog();
     }
 }
Esempio n. 3
0
 public static void ActionXWordSettings()
 {
     AddinSettingsForm addinSettingsForm = new AddinSettingsForm();
     new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers();
     addinSettingsForm.ShowDialog();
 }
Esempio n. 4
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
            }
        }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="addinSettingsForm">A reference to an <code>AddinSettingsForm</code> instance.</param>
 public AddinSettingsFormManager(ref AddinSettingsForm addinSettingsForm)
 {
     this.addinSettingsForm = addinSettingsForm;
     this.addin = Globals.XWikiAddIn;
     this.currentClientType = addin.AddinSettings.ClientType;
 }
Esempio n. 6
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;
 }