private void Remove_Click(object sender, EventArgs e) { if (DGV.CurrentCell != null && uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out uint a)) { RepeatedFunctions.RemoveCart(a, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; } }
private void EditQtyOK_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { RepeatedFunctions.EditCart(Forms.frmEditQty.Code, Forms.frmEditQty.TxtQty.Value, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; Forms.frmEditQty.Close(); } }
private void BtnRemove_Click_1(object sender, EventArgs e) { if (DGV.CurrentCell != null && uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out uint a)) { RepeatedFunctions.RemoveCart(a, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; } btnEdit.Enabled = false; btnRemove.Enabled = false; }
private void DGV_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (DGV.CurrentCell != null && DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString() != null) { if (uint.TryParse(DGV.Rows?[DGV.CurrentCell.RowIndex]?.Cells?[0].Value?.ToString(), out ItemCode)) { RepeatedFunctions.AddToCart(ref ItemCode, TxtQty.Value, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGVcart).ToString("0.00")}"; } } }
private void CartItem_Selected(UItem.CartItemSelectedEventArgs args) { RepeatedFunctions.AddToCart(ref args.Item, 1, Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; }
private void BtnIssue_Click(object sender, EventArgs e) { RepeatedFunctions.IssueItem(Cart); uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; }
private void EditQtyOK_Click(object sender, EventArgs e) { RepeatedFunctions.EditCart(Forms.frmEditQty.Code, Forms.frmEditQty.TxtQty.Value, Cart); labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}"; Forms.frmEditQty.Close(); }