public BeatController(IDJView view, IBeatModel model) { this.model = model; this.view = view; view.DisableStopMenuItem(); view.EnableStartMenuItem(); model.Initialize(); }
public BeatController(IBeatModel model) { this.model = model; view = new DJViewForm(this, model) { Visible = true }; view.Activate(); view.DisableStopMenuItem(); view.EnableStartMenuItem(); model.Initialize(); }
public BeatController(IBeatModel model) { _model = model; // Normally both the model and controller would be sent to a view, but in this case a separate view is created for each component. _viewModel = new DJViewModel(model); _viewModel.Show(); _viewControl = new DJViewControl(this, model); _viewControl.Show(); _viewControl.DisableStopMenuItem(); _viewControl.EnableStartMenuItem(); _model.Initialize(); }
public BeatController(IBeatModel model) { _beatModel = model; _beatModel.Initialize(); }