public ShopControlPresenter(Model model, ShopControlView view) { _view = view; _model = model; _model.OpenConnection(ConnectionType.Shop); _view.LoginOfCurrentUser = _model.Login; AttachToViewEvents(); }
public void IntializeShopview() { string controlName = "viewControl"; RemoveViewControl(controlName); ShopControlView viewControl = new ShopControlView(); viewControl.Name = "viewControl"; viewControl.Location = new System.Drawing.Point(0, 0); this.Size = new Size(1024, 490); viewControl.TabIndex = 0; Controls.Add(viewControl); Presenter.InitializePresenter(viewControl); viewControl.Focus(); }