private void postToToolStripMenuItem_Click(object sender, EventArgs e) { using (var _fm = new ViewChequeExpenses()) { _fm.Tag = fGrid.SelectedRows[0].Tag; _fm.Owner = this; _fm.ShowDialog(); } CheckForUpdates(); }
private void viewChequeExpenseDetailsToolStripMenuItem_Click(object sender, EventArgs e) { ic.account_AL_statementC _obj = iGrid1.SelectedRows[0].Tag as ic.account_AL_statementC; if (_obj != null) { if (_obj.statement_type == em.account_statement_typeS.bank_withdraw) { if (_obj.record_id > 0) { ic.bankWithDrawC _withDraw = datam.GetWithDrawnCheque(_obj.record_id); using (var _fm = new ViewChequeExpenses()) { _fm.Tag = _withDraw; _fm.Owner = this; _fm.ShowDialog(); } } } } }