private void Application_Startup(object sender, StartupEventArgs e) { //подключение источника данных программы DataApp = new TestDataApp(); MainWindow wnd = new MainWindow(); wnd.Show(); }
public Progress() { InitializeComponent(); _dataApp = ((App)Application.Current).DataApp; this.DataContext = this; LoadProgress(); }
//public ET DataBase = new ET(); public Deportaments() { InitializeComponent(); _dataApp = ((App)Application.Current).DataApp; StudentsList = new ObservableCollection <Student>(); _tempStudents = new ObservableCollection <Student>(); LoadStudents(); this.PreviewKeyDown += Deportaments_PreviewKeyDown; }
public AddProgress(Models.Progress editProgress) { InitializeComponent(); _dataApp = ((App)Application.Current).DataApp; this.DataContext = this; _editProgress = editProgress; LoadData(); _dataPicker.DisplayDateStart = DateTime.Today; _dataPicker.DisplayDateEnd = DateTime.Today.AddDays(1000); }
public AddStudents(Student student) { InitializeComponent(); _dataApp = ((App)Application.Current).DataApp; Student = student; this.Name.Text = Student.FirstName; this.LastName.Text = Student.LastName; this.MidName.Text = Student.MidName; this.Address.Text = Student.Address; this.Course.Text = Student.Course.ToString(); this.Group.Text = Student.Group; // this.Birthdate.SelectedDate = Student.BirthDay.Date }
public FirsthGroup(string nameGroup) { InitializeComponent(); _dataApp = ((App)Application.Current).DataApp; _nameGroup = nameGroup; Results = new ObservableCollection <StudentResult>(); DateFrom.DisplayDateStart = DateTime.Today; DateFrom.DisplayDateEnd = DateTime.Today.AddDays(-182); DateTo.DisplayDateStart = DateTime.Today; DateTo.DisplayDateEnd = DateTime.Today; this.DataContext = this; LoadStudents(); }