private void BtnFinalize_Click(object sender, EventArgs e) { if (Total() <= 0) { MessageBox.Show("Adicione itens à venda."); } else { _finalizeForm = new FinalizeForm(Total()); _finalizeForm.ShowDialog(); } }
private void Clear() { int tempX = lblTotal.Width; NewSource(); lblDiscount.Text = "0,00"; lblItemAmount.Text = "0"; lblSubtotal.Text = "0,00"; lblTotal.Text = "0,00"; //picProduct.Image = ""; txtAmount.Text = "1"; txtCode.Text = ""; lblCustomerCPF.Text = ""; lblCustomerName.Text = ""; gbCustomer.Visible = false; _addCustomerForm = null; _finalizeForm = null; _customer = null; CustomerAdded = false; lblTotal.Location = new Point(lblTotal.Location.X + Math.Abs((tempX - lblTotal.Width)), lblTotal.Location.Y); lblCifraoTotal.Location = new Point(lblCifraoTotal.Location.X + Math.Abs((tempX - lblTotal.Width)), lblCifraoTotal.Location.Y); }