示例#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);
                }
            }
        }
示例#2
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     TrainingSearchControl.ResetSearchControl();
     TrainingModel = new TrainingModel(this);
 }
示例#3
0
 public Training()
 {
     InitializeComponent();
     TrainingModel = new TrainingModel(this);
 }