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")}"; }