/// <summary> /// 新增命令 /// </summary> /// <returns></returns> public override void ExecuteAdd() { Sys_Systems system = new Sys_Systems(); system.ID = SystemList.Max(p => p.ID) + 1; FrmSystemSettingEdit edit = new FrmSystemSettingEdit(system); edit.SaveEvent += (sys) => { SystemList.Add(sys); }; edit.ShowDialog(); }