Пример #1
0
 private void toolStripMenuItem3_Click(object sender, EventArgs e)
 {
     using (frm_user f = new frm_user(this))
     {
         f.Tag = UserCn;
         f.getDetails(UserCn);
         f.isEdit = true;
         f.ShowDialog();
     }
 }
Пример #2
0
        private void label5_Click(object sender, EventArgs e)
        {
            if (dg_user.SelectedRows.Count >= 1)
            {
                using (frm_user f = new frm_user(this))
                {
                    f.cmd_save.Text       = "Save";
                    f.Tag                 = dg_user.SelectedRows[0].Cells[0].Value.ToString();
                    f.cb_show_pwd.Visible = true;

                    f.ShowDialog();
                }
            }
            else
            {
                MessageBox.Show("Action Denied! No active/selected record", Tool.Systemname, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
        }