private void dtpInvoiceDate_ValueChanged(object sender, EventArgs e) { if (invoiceData.Id == 0) { txtInvoiceNo.Text = InvoiceImplementation.GenerateInvoiceNo(dtpInvoiceDate.Value.GetFinancialYear()); } }
private void frmSales_New_Load(object sender, EventArgs e) { setAutoSuggestControl(); if (opertationType == OperationType.New) { txtInvoiceNo.Text = InvoiceImplementation.GenerateInvoiceNo(dtpInvoiceDate.Value.GetFinancialYear()); } else { LoadOldData(); } }