Пример #1
0
        public override void AddNew()
        {
            SystemEditForm sub = new SystemEditForm();

            sub.Text = "新增-" + sub.Text;
            sub.ShowDialog();
            Query();
        }
Пример #2
0
        public override void Modify()
        {
            if (gvData.FocusedRowHandle >= 0)
            {
                Guid Id = Guid.Parse(gvData.GetFocusedRowCellValue("Id").ToString());

                SystemEditForm sub = new SystemEditForm(Id);
                sub.Text = "修改-" + sub.Text;
                if (sub.ShowDialog() == DialogResult.OK)
                {
                    Query();
                }
            }
        }