private void Add_Button(object sender, EventArgs e) { dynamic i = Datetime_Box.Value.ToString(); RefundController.AddRefund(Id_Box.Text, Name_Box.Text, Batch_Box.Text, Datetime_Box.Text, Customer_Name_Box.Text, Customer_Phoner_Number_Box.Text, Refund_Reason_Box.Text); MessageBox.Show("Successfully Added to Refund List"); Refund_List_Grid.DataSource = RefundController.GetAllRefunds(); }
public void SetUp() { _gatewayRefundService = new Mock <IGatewayRefundService>(); _gatewayAuthenticationService = new Mock <IGatewayAuthenticationService>(); _refundController = new RefundController(_gatewayAuthenticationService.Object, _gatewayRefundService.Object); }
private void Refund_Product_Load(object sender, EventArgs e) { Product_View_Grid.DataSource = SaleController.GetAllSales(); Refund_List_Grid.DataSource = RefundController.GetAllRefunds(); }
private void All_Refund_Product_Load(object sender, EventArgs e) { metroGrid.DataSource = RefundController.GetAllRefunds(); }