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); } })); }