private void nameFabricatorTextBox_TextChanged(object sender, TextChangedEventArgs e) { DelegateBrush MainBrushColor = GetBrushColor; nameFabricatorTextBox.BorderBrush = MainBrushColor(); nameFabricatorToolTip.Visibility = Visibility.Hidden; }
private void typeProductTextBox_TextChanged(object sender, TextChangedEventArgs e) { DelegateBrush MainBrushColor = GetBrushColor; typeProductTextBox.BorderBrush = MainBrushColor(); typeProductToolTip.Visibility = Visibility.Hidden; }
private void priceProductTextBox_TextChanged(object sender, TextChangedEventArgs e) { DelegateBrush MainBrushColor = GetBrushColor; priceProductTextBox.BorderBrush = MainBrushColor(); priceProductToolTip.Visibility = Visibility.Hidden; if (sender is TextBox textBox) { textBox.Text = new string ( textBox.Text.Where (symb => (symb >= '0' && symb <= '9')) .ToArray() ); } }