Ejemplo n.º 1
0
 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")}";
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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")}";
         }
     }
 }
Ejemplo n.º 5
0
 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")}";
 }
Ejemplo n.º 6
0
 private void BtnIssue_Click(object sender, EventArgs e)
 {
     RepeatedFunctions.IssueItem(Cart);
     uiBasicSale1.labelTotal.Text = $"Total : Rs.{RepeatedFunctions.RefCart(Cart, DGV).ToString("0.00")}";
 }
Ejemplo n.º 7
0
 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();
 }