/// <summary> /// Shows the TimedDialog window /// </summary> /// <param name="title">title of the dialog</param> /// <param name="message">message to display</param> private static void showTimedDialog(String title, String message) { Form dlg = Context.AppPanelManager.CreatePanel("TimedDialogForm"); if (dlg is IExtension) { ExtensionInvoker invoker = (dlg as IExtension).GetInvoker(); invoker.SetValue("MessageText", message); invoker.SetValue("TitleText", title); invoker.SetValue("ShowButton", true); Context.AppPanelManager.ShowDialog(dlg as IPanel); } }
/// <summary> /// Shows the TimedDialog window /// </summary> /// <param name="parentForm">parent form</param> /// <param name="title">title of the dialog</param> /// <param name="message">message to display</param> public static void ShowTimedDialog(Form parentForm, String title, String message) { parentForm.Invoke(new MethodInvoker(delegate() { Form dlg = Context.AppPanelManager.CreatePanel("TimedDialogForm"); if (dlg is IExtension) { ExtensionInvoker invoker = (dlg as IExtension).GetInvoker(); invoker.SetValue("MessageText", message); invoker.SetValue("TitleText", title); invoker.SetValue("ShowButton", true); Context.AppPanelManager.ShowDialog(dlg as IPanel); } })); }
/// <summary> /// Displays the About box /// </summary> /// <param name="parentForm">parent form</param> /// <param name="logo">filename of the logo to display</param> /// <param name="appName">Name of the assembly</param> /// <param name="versionInfo">version information</param> /// <param name="companyInfo">company information</param> /// <param name="copyrightInfo">copyright info</param> /// <param name="attributions">3rd party attributions</param> public static void ShowAboutBox(Form parentForm, String logo, String appName, String versionInfo, String companyInfo, String copyrightInfo, IEnumerable <String> attributions) { parentForm.Invoke(new MethodInvoker(delegate { Form dlg = Context.AppPanelManager.CreatePanel("AboutBoxForm"); if (dlg is IExtension) { ExtensionInvoker invoker = (dlg as IExtension).GetInvoker(); invoker.SetValue("Logo", logo); invoker.SetValue("AppName", appName); invoker.SetValue("VersionInfo", versionInfo); invoker.SetValue("CompanyInfo", companyInfo); invoker.SetValue("CopyrightInfo", copyrightInfo); invoker.SetValue("Attributions", attributions); invoker.SetValue("ShowButton", true); Context.AppPanelManager.ShowDialog(dlg as IPanel); } })); }