public Control view(bool bookingMode) { if (bookingMode) { Control v = new Excel_InstrumentBookingView(); //this.masterInformationViewModel_.Trade_date_ = DateTime.Now; //this.masterInformationViewModel_.Trade_id_ = CodeClassificationGenerator.CreateTradeID(); v.DataContext = this; //this.view_ = v; return(v); } else { System.Windows.Controls.Control v = new Excel_InstrumentView(); v.DataContext = this; return(v); } }
public Control view(bool bookingMode) { if (bookingMode) { Control v = new Excel_InstrumentBookingView(); //this.masterInformationViewModel_.Trade_date_ = DateTime.Now; //this.masterInformationViewModel_.Trade_id_ = CodeClassificationGenerator.CreateTradeID(); v.DataContext = this; //this.view_ = v; return v; } else { System.Windows.Controls.Control v = new Excel_InstrumentView(); v.DataContext = this; return v; } }