void GoToNewDataView(View view, Model model) { // Set the view and model to the controller // Hide the main menu and go to the view m_dataController.SetView(view); m_dataController.SetModel(model); m_view.Hide(); view.LoadView(); }
public TeamBooking(DataController dataController) { m_dataController = dataController; InitializeComponent(); m_eventController = dataController; m_teamController = new DataController(null); m_teamModel = new TeamModel(); m_teamController.SetModel(m_teamModel); }