private void tsbCreate_Click(object sender, EventArgs e) { if (!MyLove.PermissionsBalidation(this.Text, "01")) { return; } var frm = new frmBankUpdate(); frm.ShowDialog(); LoadBank(); }
private void tsbUpload_Click(object sender, EventArgs e) { if (!MyLove.PermissionsBalidation(this.Text, "14")) { return; } DataRow dr = this.dgvBank.CurrentRow(); if (dr == null) { return; } var bank = DB.ReflectionHelper.DataRowToModel <bi_t_bank_info>(dr); var frm = new frmBankUpdate(); frm.bank = bank; frm.ShowDialog(); LoadBank(); }