diff --git a/Loginator/MainWindow.xaml b/Loginator/MainWindow.xaml index 6354f5c..3266d52 100644 --- a/Loginator/MainWindow.xaml +++ b/Loginator/MainWindow.xaml @@ -4,7 +4,7 @@ xmlns:controls="clr-namespace:Loginator.Controls" DataContext="{Binding LoginatorViewModel, Source={StaticResource Locator}}" WindowStartupLocation="CenterScreen" - Title="Loginator" Height="600" Width="900" MinHeight="600" MinWidth="900"> + Title="Loginator" Height="600" Width="920" MinHeight="600" MinWidth="920"> @@ -29,9 +29,10 @@ - - - + + + + diff --git a/Loginator/Version.txt b/Loginator/Version.txt index 45a228f..6f9d082 100644 --- a/Loginator/Version.txt +++ b/Loginator/Version.txt @@ -1,2 +1,2 @@ -versionCode=8 -versionName=1.6.0 \ No newline at end of file +versionCode=9 +versionName=1.6.1 diff --git a/Loginator/ViewModels/LoginatorViewModel.cs b/Loginator/ViewModels/LoginatorViewModel.cs index bda1c26..709c066 100644 --- a/Loginator/ViewModels/LoginatorViewModel.cs +++ b/Loginator/ViewModels/LoginatorViewModel.cs @@ -370,6 +370,20 @@ public ICommand ClearAllCommand { return clearAllCommand; } } + + private ICommand unselectAllCommand; + public ICommand UnselectAllCommand + { + get + { + if (unselectAllCommand == null) + { + unselectAllCommand = new RelayCommand(UnselectAll, CanUnselectAll); + } + return unselectAllCommand; + } + } + private bool CanClearAll(LoginatorViewModel loginator) { return true; } @@ -383,6 +397,23 @@ public void ClearAll(LoginatorViewModel loginator) { }); } + private bool CanUnselectAll(LoginatorViewModel loginator) + { + return true; + } + public void UnselectAll(LoginatorViewModel loginator) + { + DispatcherHelper.CheckBeginInvokeOnUI(() => { + lock (ViewModelConstants.SYNC_OBJECT) + { + foreach (var application in this.Applications) + { + application.IsActive = false; + } + } + }); + } + private ICommand updateNumberOfLogsPerLevelCommand; public ICommand UpdateNumberOfLogsPerLevelCommand { get {