Пример #1
0
        private void editButton_Click(object sender, EventArgs e)
        {
            if (Program.status == 0)
            {
                lkkMain lkkForm = new lkkMain();
                lkkForm.setUpdateData(resultsLKK.CurrentRow.Cells[0].Value.ToString());
                lkkForm.ShowDialog();
            }
            else
            {
                invalidityRegister regForm = new invalidityRegister();
                regForm.setUpdateData(resultsLKK.CurrentRow.Cells[0].Value.ToString());
                regForm.ShowDialog();

            }
            result.Clear();
            resultsLKK.DataSource = null;
            resultsLKK.Refresh();
            searchResult_Shown(this, e);
        }
Пример #2
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     switch (Program.status){
         case 0:
             lkkMain insertData = new lkkMain();
             insertData.MdiParent = this;
             insertData.Show();
             break;
         case 1:
             invalidityRegister insertRegister = new invalidityRegister();
             insertRegister.MdiParent = this;
             insertRegister.Show();
             break;
     }
 }