This commit is contained in:
iTob 2025-01-20 19:46:22 +01:00
parent 6a1b1a9f9b
commit 8659a27d01

View File

@ -49,7 +49,6 @@ public partial class MainWindow : Window
this.SetVisibilityDebugConsole(this._isDebugConsoleVisible); this.SetVisibilityDebugConsole(this._isDebugConsoleVisible);
this.SetVisibilityPicturePanel(this._isPicturePanelVisible); this.SetVisibilityPicturePanel(this._isPicturePanelVisible);
_ = this._pictureGalleryService.LoadThumbnailsToCache(); _ = this._pictureGalleryService.LoadThumbnailsToCache();
CreateMessageBox();
this.Closing += OnClosing; this.Closing += OnClosing;
logger.Info("MainWindow initialized"); logger.Info("MainWindow initialized");
} }
@ -111,20 +110,12 @@ public partial class MainWindow : Window
} }
catch (Exception exception) catch (Exception exception)
{ {
this.CreateMessageBox(); System.Windows.MessageBox.Show("Sorry, da ging was schief!");
this._logger.Info(exception.Message); this._logger.Info(exception.Message);
} }
} }
private void CreateMessageBox()
{
// <ui:MessageBox Title="Hoppla" FontSize="40" Grid.Row="0" Name="MsgBoxCtl">
//
// </ui:MessageBox>
}
private void SetVisibilityPicturePanel(object sender, RoutedEventArgs e) private void SetVisibilityPicturePanel(object sender, RoutedEventArgs e)
{ {
this.SetVisibilityPicturePanel(this._isPicturePanelVisible); this.SetVisibilityPicturePanel(this._isPicturePanelVisible);