コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            VentanaMenu ventanaMenu = new VentanaMenu();

            this.Close();
            ventanaMenu.Show();
        }
コード例 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (Arduino.IsOpen)
            {
                Arduino.Close();
            }

            VentanaMenu ventanaMenu = new VentanaMenu();

            this.Close();
            ventanaMenu.Show();
        }
コード例 #3
0
 //private void Image_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 private void Image_MouseLeftButtonDown(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(txtCorreo.Text) && !string.IsNullOrWhiteSpace(_Password.Password))
     {
         if (manejadorDeUsuarioJefe.BuscarUsuario(txtCorreo.Text, _Password.Password))
         {
             VentanaMenu ventanaMenu = new VentanaMenu();
             this.Close();
             ventanaMenu.Show();
         }
         else
         {
             MessageBox.Show("Error de datos", "Error", MessageBoxButton.OK, MessageBoxImage.Warning);
         }
     }
 }