public ModeController(IMainController mainController, IMainView m_view, ISearchPartView searchPartView) { this.m_view = m_view; this.mode_scan = new ScanMode(mainController, m_view, this, searchPartView); this.mode_selectItem = new SelectItemMode(mainController, m_view, this); this.mode_payment = new PaymentMode(mainController, m_view, this); this.mode_searchPartByGroup = new SearchPartMode(mainController, searchPartView, this); this.mode_endTransaction = new EndTransactionMode(mainController, m_view, this); }
private void changeMode(ActionMode mode) { currentMode = mode; currentMode.InitializeView(); m_view.SetInfo(currentMode.GetInfomation); }