/// <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; }
private void ShowConnectToServerUI() { if (!AddinSettingsForm.IsShown) { AddinSettingsForm addinSettingsForm = new AddinSettingsForm(); new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers(); addinSettingsForm.ShowDialog(); } }
public static void ActionXWordSettings() { AddinSettingsForm addinSettingsForm = new AddinSettingsForm(); new AddinSettingsFormManager(ref addinSettingsForm).EnqueueAllHandlers(); addinSettingsForm.ShowDialog(); }
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; }
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; }