Skip to content
This repository was archived by the owner on Oct 3, 2022. It is now read-only.

Commit fd69c01

Browse files
committed
exitcommand
1 parent 7a2777b commit fd69c01

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed
0 Bytes
Binary file not shown.

.vs/TakeMyTime.NETCore/v16/.suo

-15 KB
Binary file not shown.

TakeMyTime.WPF/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@
2020
>
2121
<Window.InputBindings>
2222
<KeyBinding Command="{Binding DashboardCommand}" Modifiers="Ctrl" Key="D"></KeyBinding>
23-
<KeyBinding Command="{Binding AssignmentOverviewCommand}" Modifiers="Ctrl" Key="A"></KeyBinding>
23+
<KeyBinding Command="{Binding AssignmentOverviewCommand}" Modifiers="Ctrl" Key="O"></KeyBinding>
2424
<KeyBinding Command="{Binding EntryCommand}" Modifiers="Ctrl" Key="E"></KeyBinding>
2525
<KeyBinding Command="{Binding AboutCommand}" Modifiers="Ctrl" Key="X"></KeyBinding>
2626
<KeyBinding Command="{Binding ProjectTypeCommand}" Modifiers="Ctrl" Key="T"></KeyBinding>
2727
<KeyBinding Command="{Binding ProjectOverviewCommand}" Modifiers="Ctrl" Key="P"></KeyBinding>
28+
<KeyBinding Command="{Binding ExitCommand}" Modifiers="Ctrl" Key="Q"></KeyBinding>
2829
</Window.InputBindings>
2930
<Grid>
3031
<Grid.Resources>

TakeMyTime.WPF/MainWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ public void NavigateToAbout()
180180
public NavigationCommand AssignmentOverviewCommand { get => new NavigationCommand(() => this.NavigateToAssignmentOverview()); }
181181
public NavigationCommand EntryCommand { get => new NavigationCommand(() => this.NavigateToEntryOverview()); }
182182
public NavigationCommand AboutCommand { get => new NavigationCommand(() => this.NavigateToAbout()); }
183+
public NavigationCommand ExitCommand { get => new NavigationCommand(() => Application.Current.Shutdown()); }
183184

184185
#endregion
185186
}

0 commit comments

Comments
 (0)