public void Clear() { if (_disposed) { throw new ObjectDisposedException(this.GetType().ToString()); } TextOutput.Clear(); Rasterizer.Clear(); }
private void Button_Click(object sender, RoutedEventArgs e) { TextOutput.Clear(); Task.Run(() => { Process currentProcess = Process.GetCurrentProcess(); AutomationElement chromiumElement = GetChromiumElement(currentProcess); if (chromiumElement != null) { Log("-- Element Properties --"); AutomationProperty[] properties = chromiumElement.GetSupportedProperties(); foreach (AutomationProperty prop in properties) { Log("ProgrammaticName: " + prop.ProgrammaticName); Log("\tProperty Name: " + Automation.PropertyName(prop)); var currentPropertyValue = chromiumElement.GetCurrentPropertyValue(prop); Log("\tProperty Value: " + currentPropertyValue); } Log("-- Element Patterns --"); AutomationPattern[] patterns = chromiumElement.GetSupportedPatterns(); foreach (AutomationPattern pattern in patterns) { Log("ProgrammaticName: " + pattern.ProgrammaticName); Log("\tPattern Name: " + Automation.PatternName(pattern)); object currentPattern = chromiumElement.GetCurrentPattern(pattern); Log("\tPattern Value: " + currentPattern); if (currentPattern is ValuePattern) { ValuePattern valuePattern = currentPattern as ValuePattern; string value = valuePattern.Current.Value; Log("\tValuePattern Value: " + value); } } var children = chromiumElement.FindAll(TreeScope.Descendants, Condition.TrueCondition); Log("-- Element Children --"); Log("Children count: " + children.Count); Log("-- End --"); } else { Log("-- Chromium automation element not found --"); } }); }
private void printResults(List <string> textTranslation) { TextOutput.Clear(); if (textTranslation.Count > 0) { TextOutput.Text += "Final transcription: " + textTranslation[textTranslation.Count - 1] + Environment.NewLine; TextOutput.Text += Environment.NewLine; foreach (string s in textTranslation) { TextOutput.Text += s; TextOutput.Text += Environment.NewLine; Console.WriteLine(s); } } else { // no new command found.. TextOutput.Text += "No new command.."; } }
private void ClearButton_Click(object sender, EventArgs e) { TextOutput.Clear(); Graph.GraphPane.CurveList.Clear(); Graph.Refresh(); }
private void ClearConsole(object sender, EventArgs e) //called when selecting "Edit" then "Clear Console" on the strip menu { TextOutput.Clear(); //Clear the text box on screen }
private void WindowsAudio_Click(object sender, EventArgs e) { TextOutput.Clear(); TextOutput.Text += "Online.." + Environment.NewLine; sre.RecognizeAsync(RecognizeMode.Multiple); }
//Очистка поля вывода и поля истории private void btn_clear_all_Click(object sender, RoutedEventArgs e) { TextOutput.Clear(); TextHistory.Text = ""; }
/*ОЧИСТКА ПОЛЕЙ*/ //Очистка всего поля private void btn_clear_Click(object sender, RoutedEventArgs e) { TextOutput.Clear(); }