/// <summary> /// Click product manage system button. /// </summary> private void ClickProductManageSystemButton(object sender, System.EventArgs eventArguments) { ProductManagementForm productManagementForm; productManagementForm = new ProductManagementForm(_productsManagementTabPagePresentationModel, _productTypesManagementTabPagePresentationModel, _model); productManagementForm.FormClosed += (formClosedSender, formClosedEventArguments) => _productManageSystemButton.Enabled = true; productManagementForm.Show(); _productManageSystemButton.Enabled = false; }
/// <summary> /// Click product manage system button. /// </summary> private void ClickProductManageSystemButton(object sender, System.EventArgs eventArguments) { ProductManagementForm productManagementForm; productManagementForm = new ProductManagementForm(_productManagementPresentationModel, _model); productManagementForm.FormClosed += CloseProductManagementForm; productManagementForm.Show(); _mainPresentationModel.ClickProductManageSystemButton(); RefreshControls(); }