public MasterInformationView view() { MasterInformationView v = new MasterInformationView(); //this.defaultPropertiesLoad(); v.DataContext = this; return(v); }
private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as Excel_instrumentViewModel; this.MasterInfoGrid_.Children.Clear(); MasterInformationView masterInfoView = this.viewModel_.MasterInformationViewModel_.view(); masterInfoView.bookingModeSetting(BookingMode.Booking); this.MasterInfoGrid_.Children.Add(masterInfoView); this.ProductGrid_.Children.Clear(); this.ProductGrid_.Children.Add(this.viewModel_.Excel_interfaceViewModel_.view()); this.ProfitLossGrid_.Children.Clear(); this.ProfitLossGrid_.Children.Add(this.viewModel_.Excel_profitLossViewModel_.view()); }
public MasterInformationView view() { MasterInformationView v = new MasterInformationView(); //this.defaultPropertiesLoad(); v.DataContext = this; return v; }