public void btnHelp_Click(Microsoft.Office.Core.IRibbonControl control) { var wizard = new HelpWizard() { TopMost = true, StartPosition = FormStartPosition.CenterParent }; #if DEBUG wizard.TopMost = false; #endif wizard.Show(); }
private void btnHelp_Click(object sender, RibbonControlEventArgs e) { var wizard = new HelpWizard() { TopMost = true, StartPosition = FormStartPosition.CenterParent }; #if DEBUG wizard.TopMost = false; #endif wizard.Show(); }
private static void ShowHelp() { dynamic templateName = ((DocumentProperties)(Globals.ThisAddIn.Application.ActiveDocument.BuiltInDocumentProperties))[ WordOM.WdBuiltInProperty.wdPropertyTitle].Value.ToString(); var wizard = new HelpWizard(templateName) { TopMost = true, StartPosition = FormStartPosition.CenterParent }; #if DEBUG wizard.TopMost = false; #endif wizard.Show(); }
public void btnHelp_Click(Microsoft.Office.Core.IRibbonControl control) { var templateName = ((DocumentProperties)(Globals.ThisAddIn.Application.ActiveDocument.BuiltInDocumentProperties))[ WordOM.WdBuiltInProperty.wdPropertyTitle].Value.ToString(); var wizard = new HelpWizard(templateName) { TopMost = true, StartPosition = FormStartPosition.CenterParent }; #if DEBUG wizard.TopMost = false; #endif wizard.Show(); }