private void addStudentButton_Click(object sender, RoutedEventArgs e)
 {
     Forms.StudentAddEditWindow g = new Forms.StudentAddEditWindow(true);
     if (g.ShowDialog() == true)
     {
         this.ShowAll(SELECTED_TAB.STUDENT);
     }
 }
 private void editStudentButton_Click(object sender, RoutedEventArgs e)
 {
     if (studentsGrid.SelectedItems.Count > 0)
     {
         for (int i = 0; i < studentsGrid.SelectedItems.Count; i++)
         {
             WFAEntity.API.NewStudent objectStudent = studentsGrid.SelectedItems[i] as WFAEntity.API.NewStudent;
             if (objectStudent != null)
             {
                 Forms.StudentAddEditWindow g = new Forms.StudentAddEditWindow(false, objectStudent.Id);
                 if (g.ShowDialog() == true)
                 {
                     this.ShowAll(SELECTED_TAB.STUDENT);
                 }
             }
         }
     }
     else
     {
         MessageBox.Show("Выберите строку");
     }
 }