F1 launches about/help.
parent
13a44f7cef
commit
12f7c27c12
|
@ -13,7 +13,7 @@
|
|||
SizeToContent="Height"
|
||||
MinHeight="450"
|
||||
Height="600"
|
||||
Width="525">
|
||||
Width="525" KeyUp="MainWindow_KeyUp">
|
||||
|
||||
<Window.DataContext>
|
||||
<vm:MainWindowViewModel/>
|
||||
|
|
|
@ -42,5 +42,17 @@ namespace WifiSitterGui
|
|||
if (vis == null) return;
|
||||
if (!vis.IsDescendantOf(WhitelistExpander)) WhitelistExpander.IsExpanded = false;
|
||||
}
|
||||
|
||||
private void MainWindow_KeyUp(object sender, KeyEventArgs e) {
|
||||
if (_about == null) {
|
||||
_about = new WifiSitterGui.View.About();
|
||||
_about.Closed += (s, args) => { _about = null; };
|
||||
_about.Show();
|
||||
}
|
||||
else {
|
||||
_about.WindowState = WindowState.Normal;
|
||||
_about.Activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue