aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Console
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-09 00:29:06 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-09 00:29:06 +0300
commit5774f40b650a376e9b622dba9df6c43589b0d398 (patch)
tree8d80f23cbb9cc264cc5be1bd82c52402eed612e6 /Software/Visual_Studio/Tango.Console
parent42391bb46aa9dda0f56a7909268a2cffdf36f1d8 (diff)
downloadTango-5774f40b650a376e9b622dba9df6c43589b0d398.tar.gz
Tango-5774f40b650a376e9b622dba9df6c43589b0d398.zip
Logs, Comments & General organization on FSE/PPC.
Several improvements.
Diffstat (limited to 'Software/Visual_Studio/Tango.Console')
-rw-r--r--Software/Visual_Studio/Tango.Console/ConsoleControlVM.cs40
1 files changed, 39 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Console/ConsoleControlVM.cs b/Software/Visual_Studio/Tango.Console/ConsoleControlVM.cs
index 1cb4118b9..2f7b1f730 100644
--- a/Software/Visual_Studio/Tango.Console/ConsoleControlVM.cs
+++ b/Software/Visual_Studio/Tango.Console/ConsoleControlVM.cs
@@ -10,16 +10,29 @@ using Tango.SharedUI;
namespace Tango.Console
{
+ /// <summary>
+ /// Represents a command prompt console control view model.
+ /// </summary>
+ /// <seealso cref="Tango.SharedUI.ViewModel" />
public class ConsoleControlVM : ViewModel
{
private int _historyIndex;
private List<ConsoleSuggestion> _knownSuggestions;
+ /// <summary>
+ /// Occurs when a command is executing.
+ /// </summary>
public event EventHandler<ConsoleCommandExecutingEventArgs> CommandExecuting;
+ /// <summary>
+ /// Gets the commands history.
+ /// </summary>
public ObservableCollection<ConsoleCommand> Commands { get; private set; }
private ConsoleCommand _currentCommand;
+ /// <summary>
+ /// Gets or sets the current command.
+ /// </summary>
public ConsoleCommand CurrentCommand
{
get { return _currentCommand; }
@@ -27,19 +40,33 @@ namespace Tango.Console
}
private List<ConsoleSuggestion> _suggestions;
+ /// <summary>
+ /// Gets or sets the available auto complete suggestions.
+ /// </summary>
public List<ConsoleSuggestion> Suggestions
{
get { return _suggestions; }
set { _suggestions = value; RaisePropertyChangedAuto(); }
}
-
+ /// <summary>
+ /// Executes the current command.
+ /// </summary>
public RelayCommand ExecuteCommand { get; set; }
+ /// <summary>
+ /// Navigates down through the commands history.
+ /// </summary>
public RelayCommand HistoryDownCommand { get; set; }
+ /// <summary>
+ /// Navigates up through the commands history.
+ /// </summary>
public RelayCommand HistoryUpCommand { get; set; }
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ConsoleControlVM"/> class.
+ /// </summary>
public ConsoleControlVM()
{
Commands = new ObservableCollection<ConsoleCommand>();
@@ -113,17 +140,28 @@ namespace Tango.Console
}
}
+ /// <summary>
+ /// Concatenates the specified suggestions to the current suggestions.
+ /// </summary>
+ /// <param name="suggestions">The suggestions.</param>
public void AppendSuggestions(List<ConsoleSuggestion> suggestions)
{
Suggestions = _knownSuggestions.Concat(suggestions).OrderBy(x => x.Name).ToList();
}
+ /// <summary>
+ /// Clears the console.
+ /// </summary>
public void Clear()
{
Commands.Clear();
CreateNew(CurrentCommand.WorkingFolder, false);
}
+ /// <summary>
+ /// Clears and creates a new current command with the specified working folder.
+ /// </summary>
+ /// <param name="workingFolder">The working folder.</param>
public void Clear(String workingFolder)
{
Commands.Clear();