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