예제 #1
0
        private void Cancel_Click(object sender, RoutedEventArgs e)
        {
            EmployersView EV = new EmployersView();

            EV.DataContext = DataContext;
            EV.Show();
            Close();
        }
        private void EmployersView_Click(object sender, RoutedEventArgs e)
        {
            EmployersView EV = new EmployersView();

            EV.SetViewModel();
            EV.Show();
            Close();
        }
예제 #3
0
 private void Update_Click(object sender, RoutedEventArgs e)
 {
     if (TextSurname.Text != "" &&
         TextName.Text != "" &&
         TextPatronymic.Text != "")
     {
         EmployersView EV = new EmployersView();
         EV.DataContext = DataContext;
         EV.Show();
         Close();
     }
     else
     {
         MessageBox.Show("Неполноценная информация, либо введена неверно.");
     }
 }