Skip to content

Commit

Permalink
Add warning and error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
TekuSP committed Oct 23, 2023
1 parent bd40c8f commit 5e261fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SubZero/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,13 @@ private async void MaterialWindow_Loaded(object sender, RoutedEventArgs e)
if (!MSIWmiHelper.IsAvailableMSI_CPU || !MSIWmiHelper.IsAvailableMSI_GPU)
{
//Not detected MSI laptop, show dialog to user
MessageBox.Show("Not an MSI laptop, or WMI for MSI not installed!", "Error", MessageBox.OK, MessageBoxImage.Error);

Check failure on line 389 in SubZero/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build

'MessageBox' does not contain a definition for 'OK'

Check failure on line 389 in SubZero/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build

'MessageBox' does not contain a definition for 'OK'
return;
}
if (!MSIWmiHelper.IsAvailableMSI_LaptopModel)
{
//Huh, is this MSI Laptop? Inform user, but continue execution
{
//Huh, is this MSI Laptop? Inform user, but continue execution
MessageBox.Show("This is MSI laptop? Unknown model detected, continuing...", "Warning", MessageBox.OK, MessageBoxImage.Warning);

Check failure on line 395 in SubZero/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build

'MessageBox' does not contain a definition for 'OK'

Check failure on line 395 in SubZero/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build

'MessageBox' does not contain a definition for 'OK'
LaptopModel = "Unknown";
}
else
Expand Down

0 comments on commit 5e261fd

Please sign in to comment.