private void TbPage_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!(e.Source is TabControl)) { return; } if (tb_TransportDetail.IsSelected) { if (TransportDetailModel == null) { TransportDetailModel = new TransportDetailModel(this); } } }
private void BtRefresh_Click(object sender, RoutedEventArgs e) { TransportDetailSearchControl.ResetSearchControl(); TransportDetailModel = new TransportDetailModel(this); }
public TransportDetail() { InitializeComponent(); TransportDetailModel = new TransportDetailModel(this); }