Skip to content

Commit

Permalink
feature - Adds Kill Process to Suspend Quick Tools (#822)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSeys authored Nov 13, 2023
1 parent 344d432 commit e4a4f78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions HandheldCompanion/Controls/ProcessEx.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,17 @@
Style="{DynamicResource InvertedToggleSwitchStyle}"
Toggled="SuspendToggle_Toggled" />
</Grid>

<!-- Separator -->
<Separator Background="{DynamicResource ExpanderHeaderBackground}" />

<!-- Kill Process -->
<Button
Name="B_KillProcess"
Click="B_KillProcess_Clicked"
Content="Kill process"
HorizontalAlignment="Stretch"
Style="{DynamicResource AccentButtonStyle}"/>
</ui:SimpleStackPanel>
</Expander.Content>
</Expander>
Expand Down
5 changes: 5 additions & 0 deletions HandheldCompanion/Controls/ProcessEx.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,9 @@ private void SuspendToggle_Toggled(object sender, RoutedEventArgs e)

Refresh();
}

private void B_KillProcess_Clicked(object sender, RoutedEventArgs e)
{
Process.Kill();
}
}

0 comments on commit e4a4f78

Please sign in to comment.