private void button1_Click(object sender, EventArgs e) { estimateForm = new EstimateForm(); estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text)); estimateForm.Dispose(); RefreshAll(); }
private void paymentReceived_Click(object sender, EventArgs e) { estimateForm = new EstimateForm(); //payment recieved agnst sale. isPurchase=false. estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text), false); estimateForm.Dispose(); RefreshAll(); }
private void paymentMade_Click(object sender, EventArgs e) { estimateForm = new EstimateForm(); //payment made against purchase. isPurchase=true estimateForm.GetPayment(DateTime.Parse(date.Text + " " + time.Text), true); estimateForm.Dispose(); RefreshAll(); }