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(); }
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("Неполноценная информация, либо введена неверно."); } }