示例#1
0
        private void updateButton_Click(object sender, EventArgs e)
        {
            if (button == 1)
            {
                UpdateForm up = new UpdateForm(1);
                up.ShowDialog();
            }

            if (button == 2)
            {
                UpdateForm up = new UpdateForm(3);
                up.ShowDialog();
            }
            if (button == 3)
            {
                UpdateForm up = new UpdateForm(4);
                up.ShowDialog();
            }
        }
示例#2
0
        private void empDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (button == 1)
            {
                UpdateForm up = new UpdateForm(1);
                up.ShowDialog();
            }
            if (button == 0)
            {
            }

            if (button == 2)
            {
                UpdateForm up = new UpdateForm(3);
                up.ShowDialog();
            }
            if (button == 3)
            {
                UpdateForm up = new UpdateForm(4);
                up.ShowDialog();
            }
        }
示例#3
0
        private void AccDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            UpdateForm up = new UpdateForm(0);

            up.ShowDialog();
        }