private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!(e.Source is TabControl)) { return; } if (tb_Warning.IsSelected) { if (WarningModel == null) { WarningModel = new WarningModel(this); } } }
private void BtRefresh_Click(object sender, RoutedEventArgs e) { WarningSearchControl.ResetSearchControl(); WarningModel = new WarningModel(this); }
public Warning() { InitializeComponent(); WarningModel = new WarningModel(this); }