forked from Grabacr07/KanColleViewer
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor repair times, UI tweaks, and F5 refresh hotkey
* All ships have a tool tip over their HP values that show repair times. * Vertical - Separator bar between tools/settings has been made tighter * Calculator is again in descending level order. * F5 key refreshes KCV's browser. No longer need to go to settings menu. Note - Grabacr07 seems to be reworking how the fleets are organized internally. So my planned feature of a Repair Queue is on hold until after he finishes his end of the work.
- Loading branch information
Showing
17 changed files
with
163 additions
and
13 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -214,3 +214,4 @@ pip-log.txt | |
#Mr Developer | ||
.mr.developer.cfg | ||
/KanColleViewer-Compiled | ||
/*.rar |
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,59 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Input; | ||
using System.Diagnostics; | ||
|
||
namespace Grabacr07.KanColleViewer.Models | ||
{ | ||
public class RelayCommand :ICommand | ||
{ | ||
|
||
readonly Action _execute; | ||
readonly Func<bool> _canExecute; | ||
|
||
public RelayCommand(Action execute) | ||
: this(execute, null) | ||
{ | ||
} | ||
|
||
public RelayCommand(Action execute, Func<bool> canExecute) | ||
{ | ||
if (execute == null) | ||
throw new ArgumentNullException("execute"); | ||
|
||
_execute = execute; | ||
_canExecute = canExecute; | ||
} | ||
|
||
[DebuggerStepThrough] | ||
public bool CanExecute(object parameter) | ||
{ | ||
return _canExecute == null || _canExecute(); | ||
} | ||
|
||
public event EventHandler CanExecuteChanged | ||
{ | ||
add | ||
{ | ||
if (_canExecute != null) | ||
CommandManager.RequerySuggested += value; | ||
} | ||
remove | ||
{ | ||
if (_canExecute != null) | ||
CommandManager.RequerySuggested -= value; | ||
} | ||
} | ||
|
||
|
||
public void Execute(object parameter) | ||
{ | ||
_execute(); | ||
} | ||
|
||
public Action CurrentAction { get { return _execute; } } | ||
} | ||
} |
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
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
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