public void OpenEditor() { var nativeWindowSettings = new NativeWindowSettings() { Size = new OpenTK.Mathematics.Vector2i(800, 600), Title = "ZigZag Editor", AutoLoadBindings = true }; m_nativeWindow = new NativeWindow(nativeWindowSettings); m_nativeWindow.Context.MakeCurrent(); GLFW.SwapInterval(1); m_imguiContext = ImGui.CreateContext(); ImGui.SetCurrentContext(m_imguiContext); ImGui.GetIO().ConfigFlags |= ImGuiConfigFlags.DockingEnable; unsafe { fixed(byte *ptr = Resources.Fonts.WorkSans_Regular) { ImGui.GetIO().Fonts.AddFontFromMemoryTTF((IntPtr)ptr, Resources.Fonts.WorkSans_Regular.Length, 28); } } ImGuiPlatformIntegration.SetupKeys(); ImGuiRendererIntegration.Initialize(); ImGuiRendererIntegration.CreateFontsTexture(); m_mainMenu = new MainMenu(); m_hierarchyWindow = new HierarchyWindow("Hierarchy"); m_historyWindow = new HistoryWindow("History"); m_mainMenu.HierarchyWindow = m_hierarchyWindow; m_mainMenu.HistoryWindow = m_historyWindow; }
public void ShowHistoryEntry(OrderHistoryWrapper entrySelected) { HistoryWindow historyWindow = new HistoryWindow(); historyWindow.DataContext = entrySelected; historyWindow.ShowDialog(); }
public void openHistory() { SelectedDebt = new ObservableCollection <double>(); SelectedDebt = Debts[CurrentSelectedIndex].Amounts; var historyView = new HistoryWindow(); historyView.Show(); }
public static HistoryWindow GetHistoryWindowInstance() { if (historyWindow == null || historyWindow.IsDisposed) { historyWindow = new HistoryWindow(); } return(historyWindow); }
private void ExecuteOpenHistoryWindow() { HistoryWindow window = new HistoryWindow(); window.DataContext = new HistoryWindowViewModel(); window.Width = _mainWindow.Width + 55; window.ShowDialog(); }
private void MenuItem_Click(object sender, RoutedEventArgs e) { _ = new HistoryWindow() { Left = this.Left + 20, Top = this.Top + 20 }.ShowDialog(); }
public void ShowHistory() { _ = new HistoryWindow() { Left = MainView.Left + 20, Top = MainView.Top + 20 }.ShowDialog(); }
private void uiShowHistory_Click(object sender, EventArgs e) { if (_historyWindow == null) { _historyWindow = new HistoryWindow(_programLogic.ProgressHistory); _historyWindow.Disposed += new EventHandler(_historyWindow_Disposed); _historyWindow.Show(this.FindForm()); } }
private static void Template() { var setttingsWindow = new SettingsWindow(); setttingsWindow.Close(); var historyWindow = new HistoryWindow(); historyWindow.Close(); }
private void HistoryAction() { var historyWindow = new HistoryWindow(); var historyViewModel = new HistoryViewModel(_logicClient); historyViewModel.OnRequestClose += (s, e) => historyWindow.Close(); historyWindow.DataContext = historyViewModel; historyWindow.Show(); }
private void History_click(object sender, RoutedEventArgs e) { HistoryWindow historyWindow = new HistoryWindow { Owner = this, DataContext = this.DataContext }; historyWindow.Show(); }
private void Query_Click(object sender, RoutedEventArgs e) { HistoryWindow hw = new HistoryWindow(dal) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; hw.Show(); hw.Activate(); }
private void MenuItemHistory_Click(object sender, RoutedEventArgs e) { MenuItem menu = (MenuItem)sender; var dataCOntext = menu.DataContext; var v = (KeyValuePair <long, ObservableCollection <FTN.ServiceContracts.MeasurementUI> >)dataCOntext; long gid = v.Key; HistoryWindow historyWindow = new HistoryWindow(gid, v.Value[0].Name); historyWindow.Show(); }
private void OnShowHistory(object obj) { if (historyWindow == null) { historyWindow = new HistoryWindow(); historyWindowViewModel = new HistoryWindowViewModel(); historyWindow.DataContext = historyWindowViewModel; } historyWindow.Show(); }
public IWindow CreateTemperatureHistory() { var temperatureViewModel = new TemperatureHistoryWindowViewModel(_temperatuDataBaseConnector, _eventAggregator); var historyWindow = new HistoryWindow { DataContext = temperatureViewModel, Tag = WindowType.TemperatureHistory }; return(historyWindow); }
public IWindow CreateBarPressureHistory() { var barPressureViewModel = new BarPressureHistoryWindowViewModel(_barometricPressureDataBaseConnector, _eventAggregator); var historyWindow = new HistoryWindow { DataContext = barPressureViewModel, Tag = WindowType.BarometricPressureHistory }; return(historyWindow); }
private void ShowDetail(string custBar) { HistoryWindow hw = new HistoryWindow(dal) { WindowStartupLocation = WindowStartupLocation.CenterScreen }; hw.custCode.Text = custBar; hw.Show(); hw.Query(); hw.Activate(); }
private void OpenHistoryWindow_Executed(object sender, ExecutedRoutedEventArgs e) { if (HistoryWindow == null) { HistoryWindow = new HistoryWindow(); HistoryWindow.Closed += (s, a) => HistoryWindow = null; HistoryWindow.Show(); } else { HistoryWindow.Activate(); } }
public Workbench(DockPanel dockPanel) { this.dockPanel = dockPanel; this.deserializeDockContent = new DeserializeDockContent(getContentFromPersistString); this.toolWorkplaceWindow = new WorkplaceExplorer(this); this.toolPropertyWindow = new PropertyWindow(this); this.toolHistoryWindow = new HistoryWindow(this); this.toolTaskWindow = new TaskWindow(this); workplaceOpenDialog = new OpenFileDialog(); documentOpenDialog = new OpenFileDialog(); }
public StateHistory() { gameSystem = GameSystem.Instance; GameObject gameObject = UnityEngine.Object.Instantiate(gameSystem.HistoryPrefab); historyWindow = gameObject.GetComponent <HistoryWindow>(); if (historyWindow == null) { throw new Exception("Failed to instantiate historyWindow!"); } gameSystem.MainUIController.FadeOut(0.2f, isBlocking: false); gameSystem.SceneController.HideFace(0.2f); gameSystem.ExecuteActions(); }
void OnGUI() { EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("<<", GUILayout.Width(50.0f))) { _Prev(); } if (GUILayout.Button("...", GUILayout.Width(50.0f))) { m_PopupWindow = new HistoryWindow(this); PopupWindow.Show(histRect, m_PopupWindow); } if (Event.current.type == EventType.Repaint) { histRect = GUILayoutUtility.GetLastRect(); } if (GUILayout.Button(">>", GUILayout.Width(50.0f))) { _Next(); } // Ping + drag done as label as drag seems to not work with buttons? GUILayout.Label("\u2299", GUILayout.Width(20.0f)); var rect = GUILayoutUtility.GetLastRect(); var cev = Event.current; var mousePos = cev.mousePosition; var o = Selection.activeObject; if (rect.Contains(mousePos) && o != null) { var mouseStartDrag = false; var mouseClick = false; mouseStartDrag = (cev.type == EventType.MouseDrag) && cev.button == 0; mouseClick = (cev.type == EventType.MouseUp) && cev.button == 0 && cev.clickCount == 1; if (mouseStartDrag) { DragAndDrop.PrepareStartDrag(); DragAndDrop.StartDrag(o.name); DragAndDrop.objectReferences = new UnityEngine.Object[] { o }; Event.current.Use(); } else if (mouseClick) { EditorGUIUtility.PingObject(o); Event.current.Use(); } } EditorGUILayout.EndHorizontal(); }
void ShowHistory() { historyWindow = new HistoryWindow(this); //PopupWindow.Show(historyStack); UnityEditor.PopupWindow.Show(histRect, historyWindow); Repaint(); if (Event.current.type == EventType.Repaint) { histRect = GUILayoutUtility.GetLastRect(); } //root.Add(historyStack); }
internal void LaunchJobHistoryWindow() { if (!_isHistoryLaunched) { _jobHistoryWindow = new HistoryWindow(); _jobHistoryWindow.Closed += (s, e) => { _isHistoryLaunched = false; }; _jobHistoryWindow.Show(); _isHistoryLaunched = true; } else { if (_jobHistoryWindow.WindowState == WindowState.Minimized) { _jobHistoryWindow.WindowState = WindowState.Normal; } _jobHistoryWindow.Focus(); } }
private void uiShowHistory_Click(object sender, EventArgs e) { if (_historyWindow == null) { _historyWindow = new HistoryWindow(_programLogic.ProgressHistory); _historyWindow.Disposed += new EventHandler(_historyWindow_Disposed); Form containerForm = FindForm(); _historyWindow.Show(containerForm); if (containerForm != null) { Screen scr = Screen.FromControl(containerForm); int x = Math.Min(containerForm.Right, scr.Bounds.Width - _historyWindow.Width); _historyWindow.Location = new Point(x, containerForm.Top); } } }
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; } } }
internal void LaunchJobHistoryWindow() { if (!_isHistoryLaunched) { _jobHistoryWindow = new HistoryWindow(); _jobHistoryWindow.Closed += (s, e) => { _isHistoryLaunched = false; }; _jobHistoryWindow.Show(); _isHistoryLaunched = true; } else { if (_jobHistoryWindow.WindowState == WindowState.Minimized) _jobHistoryWindow.WindowState = WindowState.Normal; _jobHistoryWindow.Focus(); } }
private void history_btn_Click(object sender, RoutedEventArgs e) { HistoryWindow w = new HistoryWindow(CabInUI); w.Show(); }
void _historyWindow_Disposed(object sender, EventArgs e) { _historyWindow = null; }
private void HistoryButton_Click(object sender, RoutedEventArgs e) { var historyWindow = new HistoryWindow(callback, editor.DocumentName); historyWindow.Show(); }
public static void ViewHistory() { HistoryWindow.Show(Selection.activeObject); }
protected void ShowContactLogExecuted(Interlocutor interlocutor) { var historyWindow = new HistoryWindow(interlocutor, _core.ModelContext); historyWindow.Show(); }