Example #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     id = -1;
     var upForm = new frmData(id);
     upForm.ShowDialog();
     GetAllDbItems.RefreshGrid(grdData);
 }
Example #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            var upForm = new frmData(id);

            upForm.ShowDialog();
            GetAllDbItems.RefreshGrid(grdData);
        }
Example #3
0
 private void addPasswordToolStripMenuItem_Click(object sender, EventArgs e)
 {
     contextMenuStrip1.Enabled = false;
     var upForm = new frmData(-1);
     upForm.ShowDialog();
     DisablePasswordItems();
     contextMenuStrip1.Enabled = true;
 }
Example #4
0
        private void addPasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            contextMenuStrip1.Enabled = false;
            var upForm = new frmData(-1);

            upForm.ShowDialog();
            DisablePasswordItems();
            contextMenuStrip1.Enabled = true;
        }