Exemple #1
0
        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);
                }
            }
        }
Exemple #2
0
 private void BtRefresh_Click(object sender, RoutedEventArgs e)
 {
     WarningSearchControl.ResetSearchControl();
     WarningModel = new WarningModel(this);
 }
Exemple #3
0
 public Warning()
 {
     InitializeComponent();
     WarningModel = new WarningModel(this);
 }