public static void ShowInstance() { if (_instance == null) { _instance = new HotkeysWindow(); _instance.Closed += (S, E) => _instance = null; } _instance.ShowAndFocus(); }
public ConfigWindow(Gauges gauges) : base(Constants.WINDOW_ID_CONFIG, "NanoGauges Configuration") { this.gauges = gauges; // profilesWindow = new ProfilesWindow(); hotkeysWindow = new HotkeysWindow(); exportWindow = new ExportWindow(); // SetSize(350, 300); CenterWindow(); }
void OpenHotkeyManager(object Sender, RoutedEventArgs E) { HotkeysWindow.ShowInstance(); }