-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Commons submodule and replaced by mindleaving.Commons NuGet-p…
…ackage.
- Loading branch information
Jan Scholtyssek
committed
Oct 18, 2018
1 parent
68a8589
commit dde1b68
Showing
17 changed files
with
111 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using System.Windows.Input; | ||
using Commons.Wpf; | ||
|
||
namespace CentralMonitorGUI.ViewModels | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using System; | ||
using System.Windows.Input; | ||
|
||
namespace CentralMonitorGUI.ViewModels | ||
{ | ||
public class RelayCommand : ICommand | ||
{ | ||
private readonly Action action; | ||
private readonly Func<bool> canExecute; | ||
|
||
public RelayCommand(Action action) | ||
{ | ||
this.action = action; | ||
canExecute = () => true; | ||
} | ||
public RelayCommand(Action action, Func<bool> canExecute) | ||
{ | ||
this.action = action; | ||
this.canExecute = canExecute; | ||
} | ||
|
||
public bool CanExecute(object parameter) | ||
{ | ||
return canExecute(); | ||
} | ||
|
||
public void Execute(object parameter) | ||
{ | ||
action(); | ||
} | ||
|
||
public event EventHandler CanExecuteChanged; | ||
} | ||
|
||
public class RelayCommand<T> : ICommand | ||
{ | ||
private readonly Action<T> action; | ||
private readonly Func<bool> canExecute; | ||
|
||
public RelayCommand(Action<T> action) | ||
{ | ||
this.action = action; | ||
canExecute = () => true; | ||
} | ||
public RelayCommand(Action<T> action, Func<bool> canExecute) | ||
{ | ||
this.action = action; | ||
this.canExecute = canExecute; | ||
} | ||
|
||
public bool CanExecute(object parameter) | ||
{ | ||
return canExecute(); | ||
} | ||
|
||
public void Execute(object parameter) | ||
{ | ||
action((T)parameter); | ||
} | ||
|
||
public event EventHandler CanExecuteChanged; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="mindleaving.Commons" version="1.1.13" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" /> | ||
<package id="OxyPlot.Core" version="1.0.0" targetFramework="net461" /> | ||
<package id="OxyPlot.Wpf" version="1.0.0" targetFramework="net461" /> | ||
</packages> |
Submodule Commons
deleted from
ede4ea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="mindleaving.Commons" version="1.1.13" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NUnit" version="3.9.0" targetFramework="net461" /> | ||
<package id="mindleaving.Commons" version="1.1.13" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="11.0.2" targetFramework="net461" /> | ||
<package id="NUnit" version="3.11.0" targetFramework="net461" /> | ||
</packages> |