commenting the parameters for the commands

This commit is contained in:
Benjamin Popp
2018-11-17 18:47:52 -06:00
parent e4dec5e3f5
commit 282e889c78
3 changed files with 13 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ namespace HavenSoft.Gen3Hex.ViewModel {
private int currentFindResultIndex;
public ICommand New => newCommand;
public ICommand Open => open;
public ICommand Open => open; // parameter: file to open (or null)
public ICommand Save => save;
public ICommand SaveAs => saveAs;
public ICommand SaveAll => saveAll;
@@ -34,12 +34,12 @@ namespace HavenSoft.Gen3Hex.ViewModel {
public ICommand Delete => delete;
public ICommand Back => back;
public ICommand Forward => forward;
public ICommand Goto => gotoCommand;
public ICommand ShowGoto => showGoto;
public ICommand Find => find;
public ICommand FindPrevious => findPrevious;
public ICommand FindNext => findNext;
public ICommand ShowFind => showFind;
public ICommand Goto => gotoCommand; // parameter: target destination as string (for example, a hex address)
public ICommand ShowGoto => showGoto; // parameter: true for show, false for hide
public ICommand Find => find; // parameter: target string to search
public ICommand FindPrevious => findPrevious; // parameter: target string to search
public ICommand FindNext => findNext; // parameter: target string to search
public ICommand ShowFind => showFind; // parameter: true for show, false for hide
public ICommand ClearError => clearError;
private bool gotoControlVisible;

View File

@@ -7,16 +7,16 @@ namespace HavenSoft.Gen3Hex.ViewModel {
/// </summary>
public interface ITabContent {
string Name { get; }
ICommand Save { get; }
ICommand SaveAs { get; }
ICommand Save { get; } // parameter: IFileSystem
ICommand SaveAs { get; } // parameter: IFileSystem
ICommand Undo { get; }
ICommand Redo { get; }
ICommand Copy { get; }
ICommand Copy { get; } // parameter: IFileSystem
ICommand Clear { get; }
ICommand Goto { get; }
ICommand Goto { get; } // parameter: target destination as string (example, a hex address)
ICommand Back { get; }
ICommand Forward { get; }
ICommand Close { get; }
ICommand Close { get; } // parameter: IFileSystem
event EventHandler<string> OnError;
event EventHandler Closed;

View File

@@ -14,7 +14,7 @@ namespace HavenSoft.Gen3Hex.ViewModel {
int ScrollValue { get; set; }
int MaximumScroll { get; }
ObservableCollection<string> Headers { get; }
ICommand Scroll { get; }
ICommand Scroll { get; } // parameter: Direction to scroll
HexElement this[int x, int y] { get; }
bool IsSelected(Point point);