public void RunCommand(string commandOverride = "") { string cmd = (string.IsNullOrWhiteSpace(commandOverride))? _currentCommand : commandOverride; if (!(cmd == commandOverride)) { Log("> " + cmd); } //Delete me later if (_currentCommand == "xx") { SaveExemplar(); } if (_currentCommand == "yy") { SetDataAsExemplar(); } Log(_ANN.ParseCommand(cmd)); _currentCommand = ""; OnPropertyChanged("CurrentCommand"); }
static void ParseCommand(string command) { System.Console.WriteLine(_ANN.ParseCommand(command)); }