Beispiel #1
0
        /// <summary>
        /// 新增系统
        /// </summary>
        public override void AddNew()
        {
            SystemEditForm sub = new SystemEditForm();

            sub.Text = "新增-" + sub.Text;
            sub.ShowDialog();
            Query();
        }
Beispiel #2
0
 /// <summary>
 /// 修改系统
 /// </summary>
 public override void Modify()
 {
     if (mygvData.FocusedRowHandle >= 0)
     {
         Guid           Id  = Guid.Parse(mygvData.GetFocusedRowCellValue("Id").ToString());
         SystemEditForm sub = new SystemEditForm(Id);
         sub.Text = "修改-" + sub.Text;
         if (sub.ShowDialog() == DialogResult.OK)
         {
             Query();
         }
     }
 }