wEditStud.student.Room); [students [studind]. Room]. Students.Add (studind);
} students [studind] = new Student (wEditStud.student.Name, wEditStud.student.Surname, wEditStud.student.Patrname, wEditStud.student.Age, wEditStud.student.Phone, wEditStud.student . Course, wEditStud.student.Group, wEditStud.student.Room);
} ();
} void dataGrid_MouseDoubleClick (object sender, MouseButtonEventArgs e)
{_Click (null, null);
} void buttonApply_Click (object sender, RoutedEventArgs e)
{(textMax.Text == "")
{. Text = dataGrid.Items.Count.ToString (); [roomindex]. Max = dataGrid.Items.Count;
}
{
{c = int.Parse (textMax.Text); (c
{. Text = dataGrid.Items.Count.ToString (); [roomindex]. Max = dataGrid.Items.Count;
} rooms [roomindex]. Max = c;
}
{. Text = rooms [roomindex]. Max.ToString ();
}
}. Content = ", ізніхсвободно:" + (rooms [roomindex]. Max - dataGrid.Items.Count). ToString ();
} void dataGrid_PreviewKeyUp (object sender, KeyEventArgs e)
{(e.Key == Key.Delete) buttonRemoveStudent_Click (null, null);
}
}
}