public DialogResult ShowDialog(ViewModelBase viewModel) { Window dialog = null; if (viewModel is AboutViewModel) { dialog = new AboutWindow(); } if (viewModel is PapyrusFieldEditorViewModel) { dialog = new PapyrusFieldEditorWindow(); } if (viewModel is PapyrusStateEditorViewModel) { dialog = new PapyrusStateEditorWindow(); } if (viewModel is PapyrusInstructionEditorViewModel) { dialog = new PapyrusInstructionEditorWindow(); } if (viewModel is PapyrusParameterEditorViewModel || viewModel is PapyrusVariableEditorViewModel) { dialog = new PapyrusParameterAndVariableEditorWindow(); } // When selecting a Type if (viewModel is PapyrusTypeSelectorViewModel) { dialog = new PapyrusTypeSelectorWindow(); } // When selecting a method if (viewModel is PapyrusMethodSelectorViewModel) { dialog = new PapyrusMethodSelectorWindow(); } // When selecting a constant value (int, float, bool, string) if (viewModel is PapyrusConstantValueViewModel) { dialog = new PapyrusConstantValueEditorWindow(); } // When selecting a reference value (variable, parameter or field) if (viewModel is PapyrusReferenceValueViewModel) { dialog = new PapyrusReferenceValueEditorWindow(); } // When selecting either a constant value or a reference if (viewModel is PapyrusReferenceAndConstantValueViewModel) { dialog = new PapyrusReferenceAndConstantValueEditorWindow(); } // When selecting a instruction if (viewModel is PapyrusInstructionSelectorViewModel) { dialog = new PapyrusInstructionSelectorWindow(); } if (dialog != null) { dialog.Owner = GetActiveWindow(); dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner; dialog.DataContext = viewModel; var res = dialog.ShowDialog(); if (res == null) { return(DialogResult.Undefined); } if (res.GetValueOrDefault()) { return(DialogResult.OK); } if (!res.GetValueOrDefault()) { return(DialogResult.Cancel); } } return(DialogResult.Cancel); }
private void OpenAboutWindow(object sender, ExecutedRoutedEventArgs e) { Window aboutWindow = new AboutWindow(); aboutWindow.Owner = this; aboutWindow.ShowDialog(); }
public virtual void Compose(ConceptUsecase useCase) { var mainWindowBackend = MainWindow.Backend as Window; mainWindowBackend.MainMenu = useCase.Menu; useCase.DataPostProcess = dataName => mainWindowBackend.Title = dataName + " - " + useCase.UseCaseTitle; useCase.MessageBoxShow = (text, title, buttons) => new XwtMessageBoxShow().Show(text, title, buttons); useCase.Progress = (m, i, count) => { if (i == -1 && count == -1) { StatusLabel.Text = m; } else { StatusLabel.Text = string.Format(m, i, count); } Application.MainLoop.DispatchPendingEvents(); }; mainWindowBackend.CloseRequested += (s, e) => { useCase.Close(); useCase.Dispose(); Application.Exit(); }; var viewerProvider = Registry.Pooled <ContentViewerProvider>(); viewerProvider.Add(new SheetViewer()); viewerProvider.Add(new ImageContentViewer()); viewerProvider.Add(new DigidocContentViewer()); viewerProvider.Add(new HtmlContentViewer()); if (PdfContentViewer.Available()) { viewerProvider.Add(new PdfContentViewer()); } if (TextContentViewerWithToolbar.Available()) { viewerProvider.Add(new TextContentViewerWithToolbar()); } else if (TextContentViewer.Available()) { viewerProvider.Add(new TextContentViewer()); } if (MarkdownContentViewer.Available()) { viewerProvider.Add(new MarkdownContentViewer()); } useCase.ShowAboutWindow = () => { ComposeAbout(AboutWindow); AboutWindow.Show(); }; }
public override void Initialize() { Styles.Add(new DefaultTheme()); Styles.Add((IStyle) new AvaloniaXamlLoader().Load( new Uri("resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"))); var dataGridType = typeof(DataGrid); // load DataGrid workaround Styles.Add((IStyle) new AvaloniaXamlLoader().Load( new Uri("resm:Avalonia.Controls.DataGrid.Themes.Default.xaml?assembly=Avalonia.Controls.DataGrid"))); Styles.Resources.Add("ScrollBarThickness", 14); Window InitAboutWindow() { var aboutPanel = new StackPanel() { VerticalAlignment = VerticalAlignment.Center }; var iconImg = new Image(); var stream = new MemoryStream(); App.Icon.Save(stream); stream.Seek(0, SeekOrigin.Begin); iconImg.Source = new Bitmap(stream); var ttl = App.TextBlock; ttl.Text = Application.Current.MainWindow.Title; var tbc = App.TextBlock; tbc.Text = "Copyright (c) 2017 Leacme (http://leac.me)"; var sal = App.ScrollableTextBlock; sal.Height = 220; sal.Width = 380; ((TextBlock)sal.Content).Background = Brushes.White; ((TextBlock)sal.Content).TextAlignment = TextAlignment.Center; ((TextBlock)sal.Content).Text = "\nUSAGE\n\n"; var asm = typeof(Library).GetTypeInfo().Assembly; using (Stream rs = asm.GetManifestResourceStream(asm.GetManifestResourceNames().ToList().First(z => z.StartsWith("Leacme.Lib.") && z.EndsWith(".README.md")))) { using (var sr = new StreamReader(rs)) { var rawText = sr.ReadToEnd(); ((TextBlock)sal.Content).Text += "This application features the ability to " + rawText.Split( new string[] { "This application features the ability to" }, StringSplitOptions.None)[1].Split( "![][image_screenshot]")[0].Trim() + "\n\n"; ((TextBlock)sal.Content).Text += rawText.Split(new string[] { "## Application Usage" }, StringSplitOptions.None)[1].Split( "## Library Usage")[0].Trim() + "\n\n"; } } ((TextBlock)sal.Content).Text += "LICENSES\n\n" + Application.Current.MainWindow.Title + ":\n"; using (Stream rs = asm.GetManifestResourceStream(asm.GetManifestResourceNames().ToList().First(z => z.StartsWith("Leacme.Lib.") && z.EndsWith(".LICENSE.md")))) { using (var sr = new StreamReader(rs)) { var rawText = sr.ReadToEnd(); ((TextBlock)sal.Content).Text += rawText; } } aboutPanel.Children.AddRange(new List <Control> { iconImg, ttl, tbc, sal }); foreach (Control ctl in aboutPanel.Children) { ctl.HorizontalAlignment = HorizontalAlignment.Center; ctl.Margin = new Thickness(10); } var aboutWindow = new Window() { Title = "About " + Application.Current.MainWindow.Title, Height = 400, Width = 400, Background = App.Background, WindowStartupLocation = WindowStartupLocation.CenterScreen, Icon = App.Icon, CanResize = false, Content = aboutPanel }; return(aboutWindow); } Menu InitTopMenu() { var topMenu = new Menu() { Background = App.Background, }; var fileItem = new MenuItem() { Header = "File" }; var exitItem = new MenuItem() { Header = "Exit" }; exitItem.Click += (x, y) => { Application.Current.Exit(); }; ((AvaloniaList <object>)fileItem.Items).AddRange(new object[] { new Separator(), exitItem }); var helpItem = new MenuItem() { Header = "Help" }; var aboutItem = new MenuItem() { Header = "About..." }; aboutItem.Click += async(x, y) => { if (!Application.Current.Windows.Contains(AboutWindow)) { AboutWindow = InitAboutWindow(); await AboutWindow.ShowDialog <Window>(Application.Current.MainWindow); } }; ((AvaloniaList <object>)helpItem.Items).AddRange(new object[] { new Separator(), aboutItem }); ((AvaloniaList <object>)topMenu.Items).AddRange(new[] { fileItem, helpItem }); foreach (MenuItem mi in topMenu.Items) { mi.VerticalAlignment = VerticalAlignment.Center; mi.Padding = new Thickness(5); } return(topMenu); } TopMenu = InitTopMenu(); ProgressBar InitProgressBar() { var pb = new ProgressBar() { IsIndeterminate = false }; pb.Styles.Add(new Style(x => x.OfType <ProgressBar>()) { Setters = new[] { new Setter(TabControl.BackgroundProperty, new SolidColorBrush(Colors.Transparent)), new Setter(TabControl.ForegroundProperty, new SolidColorBrush(Colors.Gainsboro)), } }); return(pb); } LoadingBar = InitProgressBar(); }
private void ShowAboutWindowCommand_Execute(object parameter) { AboutWindow window = new AboutWindow(); window.ShowDialog(); }
private void ShowAboutPage(object sender, EventArgs e) { var aboutPage = new AboutWindow(); aboutPage.Show(); }
private void miHelpAbout_Click(object sender, RoutedEventArgs e) { AboutWindow window = new AboutWindow(); window.Show(); }
private void ShowAboutDialogExecute() { var assembly = Assembly.GetEntryAssembly(); Version version = assembly.GetName().Version; AboutWindow s = new AboutWindow(); s.Owner = Application.Current.MainWindow; s.Version = version; s.ShowDialog(); }
private void AboutButton_Click(object sender, RoutedEventArgs e) { var about = new AboutWindow(); about.Owner = this; about.ShowDialog(); }
/// <summary> /// Opens RateOnSourceforge as popup and refocuses the MainWindow /// </summary> private void OpenAboutWindow() { AboutWindow rate = new AboutWindow(); rate.Show(); }
void Start() { window = gameObject.AddComponent<HelpWindow>() as HelpWindow; levelWindow = gameObject.AddComponent<LevelWindow>() as LevelWindow; aboutWindow = gameObject.AddComponent<AboutWindow>() as AboutWindow; selectedIndex = 0; selectedIndex = 0; guiEnter = false; Time.timeScale = 1.0f; GameObject levelParametersObject = GameObject.FindWithTag ("LevelParameters"); if (levelParametersObject != null) { levelParameters = levelParametersObject.GetComponent <LevelParameters>(); } if (levelParameters == null) { Debug.Log ("Cannot find 'LevelParameters' script"); } }
public void ActionAbout(object parameter = null) { var aboutDlg = new AboutWindow(); aboutDlg.ShowDialog(); }
private void OnOptionAbout(object sender, RoutedEventArgs e) { AboutWindow aboutWindow = new AboutWindow(new LoggerWrapper()); if (null != Application.Current) aboutWindow.Owner = Application.Current.MainWindow; aboutWindow.ShowDialog(); if (false != aboutWindow.InstallNewUpdate) { // The about window was closed by clicking on the "Update" link. UpdateManager.Instance.QuitAndInstallUpdate(); } }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { AboutWindow popup = new AboutWindow(); popup.Show(); }
public static void Init () { window = (AboutWindow)EditorWindow.GetWindow(typeof (AboutWindow)); //window.minSize=new Vector2(375, 449); }
static void OpenForumLink() { AboutWindow.Init(); }
private void OnOpenAboutWindowCommand() { var aboutWindow = new AboutWindow(); aboutWindow.ShowDialog(); }
/// <summary> /// Displays the specified view. /// </summary> /// <param name="view">The view to display.</param> /// <exception cref="System.ArgumentException">view is /// invalid.</exception> public void NavigateTo(SessionSummaryView view, NavigateToArgs e) { switch (view) { case SessionSummaryView.About: AboutWindow aboutWin = new AboutWindow(Settings.UseAcceleration, Resources.SessionSummaryName, EliteModule.GetVersion(Assembly.GetExecutingAssembly()), EliteModule.GetCopyright(Assembly.GetExecutingAssembly()), Resources.ModuleDescription); aboutWin.Owner = MainWindow; CurrentView = aboutWin; aboutWin.ShowDialog(); CurrentView = MainWindow; break; case SessionSummaryView.SessionCosts: { SessionCostsWindow sessionCostWin = new SessionCostsWindow(Settings.UseAcceleration); sessionCostWin.Owner = MainWindow; sessionCostWin.DataContext = new SessionCostsViewModel(SessionCostsController); CurrentView = sessionCostWin; sessionCostWin.ShowDialog(); ((IDisposable)sessionCostWin.DataContext).Dispose(); CurrentView = MainWindow; } break; case SessionSummaryView.SelectSessionCosts: { SelectSessionCostsWindow sessionCostWin = new SelectSessionCostsWindow(Settings.UseAcceleration); sessionCostWin.Owner = MainWindow; sessionCostWin.DataContext = new SelectSessionCostsViewModel(SessionCostsController, (Summary)e.Argument); CurrentView = sessionCostWin; sessionCostWin.ShowDialog(); ((IDisposable)sessionCostWin.DataContext).Dispose(); CurrentView = MainWindow; } break; case SessionSummaryView.Report: { if (m_reportWindow == null) { m_reportWindow = new SessionSummaryReportWindow(); m_reportWindow.Owner = MainWindow; m_reportWindow.Closed += ReportWindowClosed; m_reportWindow.Show(); } m_reportWindow.Focus(); ArrayList args = (ArrayList)e.Argument; DateTime date = (DateTime)args[0]; short session = (short)args[1]; RefreshSessionSummaryReport(date, session); m_reportWindow.DisplayReport(SessionSummaryReport); } break; default: throw new ArgumentException(); } }
protected void OnAbout(object sender, EventArgs e) { AboutWindow diag = new AboutWindow(); diag.Show(); }
public override void ShowAboutWindow() { var about = new AboutWindow(); about.ShowDialog(); }
private void PART_Mnu_About_Click(object sender, RoutedEventArgs e) { AboutWindow winAbout = new AboutWindow(); winAbout.Owner = App.MainAppWindow; winAbout.Topmost = App.MainAppWindow.Topmost; winAbout.ShowDialog(); }
private void AboutButton_Click(object sender, EventArgs e) { AboutWindow aw = new AboutWindow(); aw.ShowDialog(); }
private void aboutToolStripMenuItem_Click(object sender, EventArgs e) { this.Show(); this.BringIntoView(); AboutWindow about = new AboutWindow(); about.Owner = this; about.WindowStartupLocation = WindowStartupLocation.CenterOwner; about.ShowDialog(); }
public override void DoGUI() { fsmEditor.OnGUI(); /* Debug Repaint events if (Event.current.type == EventType.repaint) { Debug.Log("Repaint"); }*/ if (Event.current.type == EventType.ValidateCommand) { switch (Event.current.commandName) { case "UndoRedoPerformed": case "Cut": case "Copy": case "Paste": case "SelectAll": Event.current.Use(); break; } } if (Event.current.type == EventType.ExecuteCommand) { switch (Event.current.commandName) { /* replaced with Undo.undoRedoPerformed callback added in Unity 4.3 case "UndoRedoPerformed": FsmEditor.UndoRedoPerformed(); break; */ case "Cut": FsmEditor.Cut(); break; case "Copy": FsmEditor.Copy(); break; case "Paste": FsmEditor.Paste(); break; case "SelectAll": FsmEditor.SelectAll(); break; case "OpenWelcomeWindow": GetWindow<PlayMakerWelcomeWindow>(); break; case "OpenToolWindow": toolWindow = GetWindow<ContextToolWindow>(); break; case "OpenFsmSelectorWindow": fsmSelectorWindow = GetWindow<FsmSelectorWindow>(); fsmSelectorWindow.ShowUtility(); break; case "OpenFsmTemplateWindow": fsmTemplateWindow = GetWindow<FsmTemplateWindow>(); break; case "OpenStateSelectorWindow": stateSelectorWindow = GetWindow<FsmStateWindow>(); break; case "OpenActionWindow": actionWindow = GetWindow<FsmActionWindow>(); break; case "OpenGlobalEventsWindow": globalEventsWindow = GetWindow<FsmEventsWindow>(); break; case "OpenGlobalVariablesWindow": globalVariablesWindow = GetWindow<FsmGlobalsWindow>(); break; case "OpenErrorWindow": errorWindow = GetWindow<FsmErrorWindow>(); break; case "OpenTimelineWindow": timelineWindow = GetWindow<FsmTimelineWindow>(); break; case "OpenFsmLogWindow": logWindow = GetWindow<FsmLogWindow>(); break; case "OpenAboutWindow": aboutWindow = GetWindow<AboutWindow>(); break; case "OpenReportWindow": reportWindow = GetWindow<ReportWindow>(); break; case "AddFsmComponent": PlayMakerMainMenu.AddFsmToSelected(); break; case "RepaintAll": RepaintAllWindows(); break; case "ChangeLanguage": ResetWindowTitles(); break; } GUIUtility.ExitGUI(); } }
private void ShowAboutExecute() { var aw = new AboutWindow(); aw.ShowDialog(); }
private void Menu_About(object sender, RoutedEventArgs e) { Window aboutWindow = new AboutWindow(); aboutWindow.Show(); }
public static void ApplyLanguage(ref AboutWindow window) { window.OkButton.Content = Program.LanguageResource.GetString("Ok_Button"); window.checkForUpdatesButton.Content = Program.LanguageResource.GetString("CheckForGameUpdatesExpandable"); window.checkForModManagerUpdatesButton.Content = Program.LanguageResource.GetString("CheckForModManagerUpdatesButton"); }
private void AppAbout_Click(object sender, RoutedEventArgs e) { AboutWindow aboutWindow = new AboutWindow(); aboutWindow.ShowDialog(); }
private void About_Click(object sender, RoutedEventArgs e) { AboutWindow aboutUs = new AboutWindow(); aboutUs.Show(); }
public void DisplayAboutWindow() { AboutWindow aboutWindow = new AboutWindow(); aboutWindow.ShowDialog(); }
private void About() { var help = new AboutWindow(); help.Show(); }
public static void OpenAbout() { AboutWindow.Init(); }
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { var aboutWindow = new AboutWindow(); aboutWindow.ShowDialog(); }
private static void HookAboutWindow() { AboutWindow.Show(instance); }
private void OpenAboutWindow() { AboutWindow about = new AboutWindow(); about.Show(); }
private void MenuItem_Click(object sender, RoutedEventArgs e) { MenuItem item = sender as MenuItem; string _iHeader = item.Header.ToString(); switch (_iHeader) { //MenuItem_File case "New (Ctrl + N)": { var window = new NewScriptWindow(); window.ShowDialog(); break; } case "Open (Ctrl + O)": { var dlg = new OpenFileDialog(); dlg.InitialDirectory = myGlobal.settingInfo.CasePath; dlg.Filter = "Script test (*.csv)|*.csv"; dlg.Title = "Select script test case file"; if (dlg.ShowDialog() == true) { csvScriptTest.FromCsvFile(dlg.FileName, dlg.SafeFileName); Properties.Settings.Default.ScriptPath = dlg.FileName; Properties.Settings.Default.ScriptName = dlg.SafeFileName; Properties.Settings.Default.Save(); MessageBox.Show("Success", "Open File", MessageBoxButton.OK, MessageBoxImage.Information); } break; } case "Save (Ctrl + S)": { if (myGlobal.duts.Count == 0) { return; } if (myGlobal.duts[0].Path == null) //new test case { var dlg = new SaveFileDialog(); dlg.InitialDirectory = myGlobal.settingInfo.CasePath; dlg.FileName = string.Format("Script_Test_{0}.csv", myGlobal.duts[0].Name); dlg.Filter = "*.csv|*.csv"; dlg.Title = "Save script test to file"; if (dlg.ShowDialog() == true) { csvScriptTest.ToCsvFile(dlg.FileName); Properties.Settings.Default.ScriptPath = dlg.FileName; Properties.Settings.Default.ScriptName = dlg.SafeFileName; Properties.Settings.Default.Save(); MessageBox.Show("Success", "Save File", MessageBoxButton.OK, MessageBoxImage.Information); } } else { csvScriptTest.ToCsvFile(myGlobal.duts[0].Path); MessageBox.Show("Success", "Save File", MessageBoxButton.OK, MessageBoxImage.Information); } break; } case "SaveAs": { MessageBox.Show(myParameter.dictRangeCapacitance.Count.ToString()); break; } case "Exit (Ctrl + Shift + X)": { this.Close(); break; } //MenuItem_View case "Reset Tree Icons": { ViewHelper.resetTreeIcon(); break; } case "Clear Debug Windows": { ViewHelper.clearDebugWindow(); break; } case "Clear Test Results": { ViewHelper.clearTestResult(); break; } case "Clear Status Bar": { ViewHelper.clearStatusBar(); break; } case "Show Status Bar": { break; } case "Reset All": { ViewHelper.clearAll(); break; } //MenuItem_Tests case "Run Tree (F5)": { if (myGlobal.duts.Count == 0) { break; } if (myGlobal.duts[0].Cases[0].Items.Count == 0) { break; } Thread t = new Thread(new ThreadStart(() => { Stopwatch st = new Stopwatch(); st.Start(); bool r = TestAllItems.getResult(); st.Stop(); string tt = (st.ElapsedMilliseconds / 1000).ToString(); MessageBox.Show("All item is tested. total time = " + tt + " sec", "Test Tree", MessageBoxButton.OK, MessageBoxImage.Information); })); t.IsBackground = true; t.Start(); break; } //MenuItem_Debug case "Multimeter device": { this.Opacity = 0.5; var window = new MultimeterWindow(myGlobal.multimeterInfo.DLLFile); window.ShowDialog(); this.Opacity = 1; break; } case "Switch card device": { this.Opacity = 0.5; var window = new SwitchCardWindow(myGlobal.switchcardInfo.DLLFile); window.ShowDialog(); this.Opacity = 1; break; } case "Power supply device": { this.Opacity = 0.5; var window = new PowerSupplyWindow(myGlobal.powersupplyInfo.DLLFile); window.ShowDialog(); this.Opacity = 1; break; } //MenuItem_Options case "Edit configurations": { this.Opacity = 0.5; var window = new EditConfigurationWindow(); window.ShowDialog(); this.Opacity = 1; break; } //MenuItem_Windows //MenuItem_Help case "ICT Help": { this.Opacity = 0.5; var window = new HelpWindow(); window.ShowDialog(); this.Opacity = 1; break; } case "ICT About": { this.Opacity = 0.5; var window = new AboutWindow(); window.ShowDialog(); this.Opacity = 1; break; } case "ICT History": { this.Opacity = 0.5; var window = new HistoryWindow(); window.ShowDialog(); this.Opacity = 1; break; } } }
public static void OpenAboutWindow() { OpenWindow(ref winAbout, () => winAbout = null); }
private void ExecutedAboutCommand(object sender, ExecutedRoutedEventArgs e) { var wnd = new AboutWindow(this); wnd.ShowModal(this); }
/// <summary> /// 打开相关窗口 /// </summary> private void OpenAboutMethod() { var win = new AboutWindow(); win.Show(); }
private void AboutMenu_Click(object sender, RoutedEventArgs e) { AboutWindow _about = new AboutWindow(); _about.Show(); }
//-------------------------------- #region Help private void OnAbout(object sender, RoutedEventArgs e) { loaded = false; AboutWindow.Show(this); loaded = true; }
private void OnShowAbout() { var window = new AboutWindow(); window.ShowDialog(); }
void MessageReceived(NotificationMessage notificationMessage) { Dispatcher.BeginInvoke(new Action(() => { if (notificationMessage.Notification == Messages.ShowWaitWindowLoading) { if (waitWindow != null) { waitWindow.Close(); } waitWindow = new WaitWindow("Loading please wait...") { Owner = this }; waitWindow.Closed += (sender, e) => viewModel.CancelLoading(); waitWindow.ShowDialog(); } else if (notificationMessage.Notification == Messages.ShowWaitWindowSaving) { if (waitWindow != null) { waitWindow.Close(); } waitWindow = new WaitWindow("Saving please wait...") { Owner = this }; waitWindow.Closed += (sender, e) => viewModel.CancelLoading(); waitWindow.ShowDialog(); } else if (notificationMessage.Notification == Messages.ShowAboutWindow) { if (aboutWindow != null) { aboutWindow.Close(); } aboutWindow = new AboutWindow(viewModel.GetApplicationInformation().ProductName) { DataContext = notificationMessage.Target, Owner = this }; aboutWindow.ShowDialog(); } else if (notificationMessage.Notification == Messages.ShowSettings) { if (settingsWindow != null) { settingsWindow.Close(); } settingsWindow = new SettingsWindow { DataContext = notificationMessage.Target, Owner = this }; settingsWindow.ShowDialog(); } else if (notificationMessage.Notification == Messages.DismissWaitWindow) { if (waitWindow != null) { waitWindow.Close(); waitWindow = null; } } else if (notificationMessage.Notification == Messages.DismissSettingsWindow) { if (settingsWindow != null) { settingsWindow.Close(); settingsWindow = null; } } else if (notificationMessage.Notification == Messages.ReValidateAllRows) { RevalidateAllRows(); } else if (notificationMessage.Notification == Messages.RefreshDataGridRowNumbers) { CustumerDataGrid.Items.Refresh(); } })); }
public void OnGUI() { fsmEditor.OnGUI(); /* BeginWindows(); fsmEditor.DoPopupWindows(); EndWindows();*/ if (Event.current.type == EventType.ValidateCommand) { //Debug.Log(Event.current.commandName); switch (Event.current.commandName) { case "UndoRedoPerformed": Event.current.Use(); break; case "Copy": Event.current.Use(); break; case "Paste": Event.current.Use(); break; case "SelectAll": Event.current.Use(); break; } } if (Event.current.type == EventType.ExecuteCommand) { //Debug.Log(Event.current.commandName); switch (Event.current.commandName) { case "UndoRedoPerformed": FsmEditor.UndoRedoPerformed(); break; case "Copy": FsmEditor.Copy(); break; case "Paste": FsmEditor.Paste(); break; case "SelectAll": FsmEditor.SelectAll(); break; case "OpenToolWindow": toolWindow = GetWindow<ContextToolWindow>(); break; case "OpenFsmSelectorWindow": fsmSelectorWindow = GetWindow<FsmSelectorWindow>(); fsmSelectorWindow.ShowUtility(); break; case "OpenFsmTemplateWindow": fsmTemplateWindow = GetWindow<FsmTemplateWindow>(); break; case "OpenStateSelectorWindow": stateSelectorWindow = GetWindow<FsmStateWindow>(); break; case "OpenActionWindow": actionWindow = GetWindow<FsmActionWindow>(); break; case "OpenGlobalEventsWindow": globalEventsWindow = GetWindow<FsmEventsWindow>(); break; case "OpenGlobalVariablesWindow": globalVariablesWindow = GetWindow<FsmGlobalsWindow>(); break; case "OpenErrorWindow": errorWindow = GetWindow<FsmErrorWindow>(); break; case "OpenFsmLogWindow": logWindow = GetWindow<FsmLogWindow>(); break; case "OpenAboutWindow": aboutWindow = GetWindow<AboutWindow>(); break; case "OpenReportWindow": reportWindow = GetWindow<ReportWindow>(); break; case "AddFsmComponent": PlayMakerMainMenu.AddFsmToSelected(); break; case "RepaintAll": RepaintAllWindows(); break; } GUIUtility.ExitGUI(); } }
void OnClicksito(object sender, EventArgs a) { about = new AboutWindow(); about.Run(); about.Destroy(); }
private void MenuItemAbout_OnClick(object sender, RoutedEventArgs e) { var about = new AboutWindow(); about.ShowDialog(); }
private void miAbout_Click(object sender, RoutedEventArgs e) { try { AboutWindow ab = new AboutWindow(this); ab.ShowDialog(); } catch (Exception ex) { ErrorLog.LogException(ex); } }
private void ShowAboutWindow(object sender, RoutedEventArgs e) { e.Handled = true; var wnd = new AboutWindow() { Owner = this }; wnd.ShowDialog(); }
private void AboutMenuItem_Click(object sender, EventArgs e) { using (var aboutWindow = new AboutWindow()) { aboutWindow.ShowDialog(); } }
private void MenuAbout_Click(object sender, RoutedEventArgs e) { AboutWindow dlg = new AboutWindow(); dlg.Owner = this; dlg.ShowDialog(); }