Beispiel #1
0
        private void btnWatchInfo_Click(object sender, EventArgs e)
        {
            FrmAddWorker aff = new FrmAddWorker();

            aff.Text = "员工信息查看页";
            aff.ShowDialog();
        }
Beispiel #2
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            FrmAddWorker frmAddWorker = new FrmAddWorker();

            frmAddWorker.Text = "员工信息修改页";
            frmAddWorker.ShowDialog();
        }
        private void btnWatchInfo_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("你要查看信息还是修改信息?('是'则为查看信息/‘否’则为修改信息/'取消'则为取消操作)", "系统提示", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

            if (dr == DialogResult.Yes)
            {
                FrmAddWorker aff = new FrmAddWorker();
                aff.Text = "员工信息查看页";
                aff.ShowDialog();
            }
            else if (dr == DialogResult.No)
            {
                FrmAddWorker frmAddWorker = new FrmAddWorker();
                frmAddWorker.Text = "员工信息修改页";
                frmAddWorker.ShowDialog();
            }
            else
            {
                MessageBox.Show("操作取消!");
            }
        }
        private void btnAddWorker_Click(object sender, EventArgs e)
        {
            FrmAddWorker frm = new FrmAddWorker();

            frm.Show();
        }