diff --git a/EasySnippets/App.xaml b/EasySnippets/App.xaml index 42c55b7..4d059e3 100644 --- a/EasySnippets/App.xaml +++ b/EasySnippets/App.xaml @@ -5,6 +5,17 @@ StartupUri="Views/MainWindow.xaml" DispatcherUnhandledException="App_DispatcherUnhandledException"> - + + + + + + + + + + + + - + \ No newline at end of file diff --git a/EasySnippets/EasySnippets.csproj b/EasySnippets/EasySnippets.csproj index 89071ed..e48a23d 100644 --- a/EasySnippets/EasySnippets.csproj +++ b/EasySnippets/EasySnippets.csproj @@ -38,13 +38,31 @@ es.ico + + ..\packages\MahApps.Metro.1.5.0\lib\net45\MahApps.Metro.dll + + + ..\packages\MahApps.Metro.SimpleChildWindow.1.4.0\lib\net45\MahApps.Metro.SimpleChildWindow.dll + ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll + + ..\packages\Rx-Core.2.2.5\lib\net45\System.Reactive.Core.dll + + + ..\packages\Rx-Interfaces.2.2.5\lib\net45\System.Reactive.Interfaces.dll + + + ..\packages\Rx-Linq.2.2.5\lib\net45\System.Reactive.Linq.dll + + + ..\packages\MahApps.Metro.1.5.0\lib\net45\System.Windows.Interactivity.dll + @@ -65,12 +83,19 @@ + + ClosingDialog.xaml + EditorWindow.xaml + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/EasySnippets/ViewModels/Settings.cs b/EasySnippets/ViewModels/Settings.cs index 2a80619..5ad01bd 100644 --- a/EasySnippets/ViewModels/Settings.cs +++ b/EasySnippets/ViewModels/Settings.cs @@ -33,6 +33,22 @@ public string CurrentFilePath set => SetProperty(ref _currentFilePath, value); } + private int _height; + + public int Height + { + get => _height; + set => SetProperty(ref _height, value); + } + + private int _width; + + public int Width + { + get => _width; + set => SetProperty(ref _width, value); + } + protected new virtual bool SetProperty(ref T storage, T value, [CallerMemberName] string propertyName = "") { if (EqualityComparer.Default.Equals(storage, value)) diff --git a/EasySnippets/Views/ClosingDialog.xaml b/EasySnippets/Views/ClosingDialog.xaml new file mode 100644 index 0000000..ccadca3 --- /dev/null +++ b/EasySnippets/Views/ClosingDialog.xaml @@ -0,0 +1,31 @@ + + + + + + + + + + Are you sure + you want to exit? + + + +