public frmMemoOrder(ITransactionService transactionServices, ICustomerService customerServices,
                            IJewelCalculation jewelCalculation)
            : this()
        {
            _transactionServices = transactionServices;
            _customerServices    = customerServices;
            _jewelCalculation    = jewelCalculation;

            { ConfigDataGridView(dgvJewel); }

            BindMemoForm();

            // Assign Events
            dgvJewel.RowsAdded += delegate { CalculateTotal(); };

            dgDataControl.KeyDown        += ondgDataControlKeyDown;
            dgDataControl.CellValidating += ondgDataControlCellValidating;
            dgDataControl.CellEndEdit    += ondgDataControlCellEndEdit;
            txtStamping.KeyPress         += WinEvents.AllowNumeric_KeyPress;

            dgCertificatesCostingRates.CellValidating += onCertificatesCostingRatesCellValidating;

            txtBarCode.KeyPress += ontxtBarCodeKeyPress;

            btnNext.Click += onbtnNextClick;
            btnSave.Click += onbtnSaveClick;

            rdoApprovalMemo.Checked  = ApprovalSelection;
            rdoMarketingMemo.Checked = !ApprovalSelection;
        }
        public frmCostingRates(ISupplierService supplierService,
                               IConfigurationService configurationService, IWinSettingProvider winSettingProvider,
                               ITransactionService costingServices, IJewelCalculation jewelCalculation)
            : this()
        {
            _configurationService = configurationService;
            _winSettingProvider   = winSettingProvider;
            _transactionService   = costingServices;
            _jewelCalculation     = jewelCalculation;

            PurchaseTransactionItems = new List <JewelTransaction>();

            cboCustomer.DataSource    = supplierService.GetActiveSuppliers();
            cboCustomer.SelectedIndex = -1;
            dtCosting.Value           = DateTime.Now;
        }