private void ClearAll(bool clearAlsoProfile) { foreach (var textBox in Common.FindVisualChildren <TextBox>(this)) { if (textBox.Equals(TextBoxLogTPM)) { continue; } var tagHolderClass = (TagDataClassTPM)textBox.Tag; textBox.Text = ""; tagHolderClass.ClearAll(); } if (clearAlsoProfile) { _tpmPanel.ClearSettings(); } }
private void ClearAll(bool clearAlsoProfile) { foreach (var textBox in Common.FindVisualChildren <TPMTextBox>(this)) { if (textBox.Equals(TextBoxLogTPM) || textBox.Bill == null) { continue; } textBox.Bill.ClearAll(); } if (clearAlsoProfile) { _tpmPanel.ClearSettings(true); } ShowGraphicConfiguration(); }