private void Button_Clear_Click(object sender, RoutedEventArgs e) { int Buf = Convert.ToInt16(textBlock1.Text); Buf++; textBlock1.Text = Buf.ToString(); PB.Clear(); }
private void SelectionChange_CB1(object sender, SelectionChangedEventArgs e) { PB.Clear(); if (CB1.SelectedIndex == 0) { PB.PasswordChar = (Char)42; } else if (CB1.SelectedIndex == 1) { PB.PasswordChar = (Char)43; } else if (CB1.SelectedIndex == 2) { PB.PasswordChar = (Char)176; } else { PB.PasswordChar = (Char)174; } PB.IsEnabled = true; }