示例#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
文件: Form1.cs 项目: unix-admin/lkk
 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;
     }
 }