private void CustomHotkeyToggle_Click(object sender, RoutedEventArgs e) { bool isWindowOpen = false; foreach (Window w in System.Windows.Application.Current.Windows) { if (w is HotkeyWindow) { isWindowOpen = true; } } if (!isWindowOpen) { HotkeyWindow hotkeyDialog = new HotkeyWindow("toggle"); hotkeyDialog.Show(); } }
private void StashTabHotkey_Click(object sender, RoutedEventArgs e) { bool isWindowOpen = false; foreach (Window w in System.Windows.Application.Current.Windows) { if (w is HotkeyWindow) { isWindowOpen = true; } } if (!isWindowOpen) { HotkeyWindow hotkeyDialog = new HotkeyWindow(this, "stashtab"); hotkeyDialog.Show(); } }
private void RefreshHotkey_MouseDoubleClick(object sender, MouseButtonEventArgs e) { bool isWindowOpen = false; foreach (Window w in System.Windows.Application.Current.Windows) { if (w is HotkeyWindow) { isWindowOpen = true; } } if (!isWindowOpen) { HotkeyWindow hotkeyDialog = new HotkeyWindow("refresh"); hotkeyDialog.Show(); } }