예제 #1
0
        private void buttonItem1_Click(object sender, EventArgs e)
        {
            FrOperatorEdit a = new FrOperatorEdit();

            a.code = "Add";
            a.ShowDialog();
            if (a.DialogResult == DialogResult.OK)
            {
                Reload();
            }
        }
예제 #2
0
        private void toolAmend_Click(object sender, EventArgs e)
        {
            FrOperatorEdit a = new FrOperatorEdit();

            a.code   = "Edit";
            a.yonghu = dataGridViewX2.CurrentRow.Cells["用户名"].Value.ToString();
            a.ShowDialog();
            if (a.DialogResult == DialogResult.OK)
            {
                Reload();
            }
        }