diff --git a/src/KeyKeeper/Views/MainWindow.axaml.cs b/src/KeyKeeper/Views/MainWindow.axaml.cs index ffb51ee..ec9a8a1 100644 --- a/src/KeyKeeper/Views/MainWindow.axaml.cs +++ b/src/KeyKeeper/Views/MainWindow.axaml.cs @@ -38,7 +38,6 @@ namespace KeyKeeper.Views { if (file.TryGetLocalPath() is string path) { - ShowMessage($"Создание нового хранилища: {path}"); (DataContext as MainWindowViewModel)!.CreateVault(path); OpenRepositoryWindow(); } @@ -70,25 +69,12 @@ namespace KeyKeeper.Views var file = files[0]; if (file.TryGetLocalPath() is string path) { - ShowMessage($"Открытие хранилища: {path}"); (DataContext as MainWindowViewModel)!.OpenVault(path); OpenRepositoryWindow(); } } } - private void ShowMessage(string message) - { - // Временное решение для показа сообщений - var messageBox = new Window - { - Title = "KeyKeeper", - Content = new TextBlock { Text = message, Margin = new Thickness(20) }, - SizeToContent = SizeToContent.WidthAndHeight, - WindowStartupLocation = WindowStartupLocation.CenterOwner - }; - messageBox.ShowDialog(this); - } private void OpenRepositoryWindow() { var repositoryWindow = new RepositoryWindow()