void ReplacePrompt(object sender, EventArgs e) { var newprompt = string.Format("[{1}]>", workingDirectory, GitIntellisenseHelper.GetPrompt()); if (prompt != newprompt) { var command = GetCommand(); var last = this.richTextBox1.Document.Blocks.Last(); this.richTextBox1.Document.Blocks.Remove(last); prompt = newprompt; WritePrompt(); ChangePrompt(command, new SolidColorBrush(Colors.Black)); lstOptions.Visibility = Visibility.Collapsed; } }
private IEnumerable <string> GetOptions(string command) { return(GitIntellisenseHelper.GetOptions(command)); }