public void Save() { this.Add(); if (SettingInterface != null) { SettingInterface.Save(); } if (onJobInfoChanged != null) { onJobInfoChanged(JobInfoOp.Save, this); } }
public void Delete() { GlobalInstanceManager <JobInfoManager> .Intance.JobInfoDic.Remove(GuId); GlobalInstanceManager <SchedulerManager> .Intance.DeleteJob(this); if (SettingInterface != null) { SettingInterface.Delete(this); } if (onJobInfoChanged != null) { onJobInfoChanged(JobInfoOp.Delete, this); } }