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