private void ConfContra_MouseEnter(object sender, MouseEventArgs e) { if (clasificador == 1) { EyeOff.Kind = MaterialDesignThemes.Wpf.PackIconKind.Eye; clasificador = -1; ConfContra.Visibility = System.Windows.Visibility.Collapsed; ConfContraV.Visibility = System.Windows.Visibility.Visible; Contra.Visibility = System.Windows.Visibility.Collapsed; ContraV.Visibility = System.Windows.Visibility.Visible; ContraV.Focus(); ConfContraV.Focus(); } else if (clasificador == -1) { EyeOff.Kind = MaterialDesignThemes.Wpf.PackIconKind.EyeOff; clasificador = 1; ConfContra.Visibility = System.Windows.Visibility.Visible; ConfContraV.Visibility = System.Windows.Visibility.Collapsed; Contra.Visibility = System.Windows.Visibility.Visible; ContraV.Visibility = System.Windows.Visibility.Collapsed; Contra.Focus(); ConfContra.Focus(); } }
//************************************************************************ //************************************************************************ //THESE ARE THE DIRECT CONTROL FROM SORTARRAY.CS //************************************************************************ //************************************************************************ //************************************************************************ private void Alpha_Click_1(object sender, EventArgs e) //************************************************************************ { // Sort Bank array normal if (Bank._badirection == 1) { Bank._badirection = 0; a[0] = 0; string msg = "Bank ArrayList Sort Order has been changed to Normal (Ascending)\r\n"; SortArray.SortBankArray(0); Info.Text = "Normal ( Ascending)"; Info.ForeColor = Color.Black; Bank.form1.ShowText(msg, a, 0); //the method defined in Bank Alpha.Enabled = false; Contra.Enabled = true; Contra.Focus( ); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { Estado = false; Contra.Focus(); }