private void Initialize()
 {
     context                  = new Persistence.ApplicationContext();
     addSaleProductView       = AddSaleProductView.Instance;
     saleView.BtnAddEvent    += BtnAdd_Click;
     saleView.BtnEditEvent   += BtnEdit_Click;
     saleView.BtnSaveEvent   += BtnSave_Click;
     saleView.BtnDeleteEvent += BtnDelete_Click;
     saleView.CellClickEvent += saleView_CellClickEvent;
 }
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            if (export.Products.Count == 0)
            {
                return;
            }
            addSaleProductView            = AddSaleProductView.Instance;
            addSaleProductView.Text       = "Edit Product Details";
            addSaleProductView.TextButton = "Save";
            addSaleProductView.Product    = export.Products[saleView.SelectedRowIndex];
            var data = addSaleProductView.Product;

            if (AddImportProductView.EditClicked)
            {
                export.Products[saleView.SelectedRowIndex] = data;
            }
        }