private void MenuItem_Click_AddTestToTrainee(object sender, RoutedEventArgs e)
        {
            AddTestWindow testWindow = new AddTestWindow();

            testWindow.TxtBx_ID.Text       = (ListBox_TraineesList.SelectedItem as Trainee).Id;
            testWindow.TxtBx_ID.IsEnabled  = false;
            testWindow.TxtBx_City.Text     = (ListBox_TraineesList.SelectedItem as Trainee).City;
            testWindow.TxtBx_Street.Text   = (ListBox_TraineesList.SelectedItem as Trainee).Street;
            testWindow.TxtBx_BuildNum.Text = (ListBox_TraineesList.SelectedItem as Trainee).BuildingNumber.ToString();
            testWindow.ShowDialog();
        }
예제 #2
0
        private void Button_Click_AddTest(object sender, RoutedEventArgs e)
        {
            AddTestWindow testWindow = new AddTestWindow();

            testWindow.TxtBx_ID.Text       = trainee.Id;
            testWindow.TxtBx_ID.IsEnabled  = false;
            testWindow.TxtBx_City.Text     = trainee.Address.City;
            testWindow.TxtBx_Street.Text   = trainee.Address.Street;
            testWindow.TxtBx_BuildNum.Text = trainee.Address.BuildingNumber.ToString();
            testWindow.ShowDialog();
            trainee = MainWindow.bl.GetTraineeByID(trainee.Id);
        }
        private void Button_Click_AddTest(object sender, RoutedEventArgs e)
        {
            AddTestWindow addTestWindow = new AddTestWindow();

            addTestWindow.ShowDialog();
        }