void btnSearch_Click(object sender, EventArgs e) { //GridView view; if (gridView1.RowCount == 0) { using (FrmReceiptDemand forms = new FrmReceiptDemand()) { forms.ShowDialog(); } } else { Common.setMessageBox(" There are some Receipt Transaction to be completed " + " Please Complete them before continue ", Program.ApplicationName, 3); return; } }
public FrmReceiptDemand() { InitializeComponent(); ToolStripEvent(); publicStreetGroup = this; setImages(); setDBComboBox(); btnSearch.Click += btnSearch_Click; btnPrint.Click += btnPrint_Click; }