Esempio n. 1
0
        private void modify_toolStripMenuItem_Click(object sender, EventArgs e)
        {
            GroupClassInfo arg = gridView1.GetRow(gridView1.FocusedRowHandle) as GroupClassInfo;

            if (arg == null)
            {
                XtraMessageBox.Show("所选行数据错误,请刷新后重试", "消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            CreateForm form = new CreateForm(arg, WindowsModel.Modify);

            form.Show();
        }
Esempio n. 2
0
        private void add_toolStripMenuItem_Click(object sender, EventArgs e)
        {
            CreateForm form = new CreateForm(new GroupClassInfo(), WindowsModel.AddNew);

            form.Show();
        }