Beispiel #1
0
 public void Save()
 {
     this.Add();
     if (SettingInterface != null)
     {
         SettingInterface.Save();
     }
     if (onJobInfoChanged != null)
     {
         onJobInfoChanged(JobInfoOp.Save, this);
     }
 }
Beispiel #2
0
        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);
            }
        }