Example #1
0
        private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!(e.Source is TabControl))
            {
                return;
            }

            if (tb_Training.IsSelected)
            {
                if (TrainingModel == null)
                {
                    TrainingModel = new TrainingModel(this);
                }
            }
        }
Example #2
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     TrainingSearchControl.ResetSearchControl();
     TrainingModel = new TrainingModel(this);
 }
Example #3
0
 public Training()
 {
     InitializeComponent();
     TrainingModel = new TrainingModel(this);
 }