public addNewTest() { InitializeComponent(); bl = BL.factoryBL.getBL(); traineeToTest = new BE.Trainee(); newTest = new BE.Test(); leavingAdress = new BE.StructTypes.Adress(); this.DataContext = newTest; isRunnig = false; }
public updateTest() { InitializeComponent(); bl = BL.factoryBL.getBL(); thisTester = new BE.Tester(); currentTest = new BE.Test(); newAdress = new BE.StructTypes.Adress(); testReport = new BE.StructTypes.testReport(); ourListOfTests = this.passedTestsWithoutExamination(thisTester._ID); this.ComboBoxTestsToUpdate.ItemsSource = ourListOfTests; this.ComboBoxTestsToUpdate.DisplayMemberPath = "num_of_test"; this.ComboBoxTestsToUpdate.SelectedValuePath = "num_of_test"; this.DataContext = currentTest; }