public bool AddApp(LogApp app) { if (m_existingApps.ContainsKey(app.AppGUID)) { throw new Exception("该应用程序已经存在,不能重复新建!"); } if (DBService.Instance.AddApplication(app)) { m_existingApps.Add(app.AppGUID, (LogApp)app.Clone()); return(true); } return(false); }
public DeleteAppCommand(LogApp la) { m_newData = (LogApp)la.Clone(); }
public CreateNewAppCommand(LogApp la) { m_newData = (LogApp)la.Clone(); }