public static void CreateOrUpdateSavedJob(string JobName, IgorPersistentJobConfig JobConfig) { IgorConfig Inst = GetInstance(); if (Inst != null) { int CurrentJobIndex = 0; foreach (IgorPersistentJobConfig CurrentJob in Inst.JobConfigs) { if (CurrentJob.JobName == JobName) { Inst.JobConfigs[CurrentJobIndex] = JobConfig; Inst.Save(); return; } ++CurrentJobIndex; } Inst.JobConfigs.Add(JobConfig); Inst.Save(); } }
public static void InitializeStartingConfig() { IgorConfig NewInst = new IgorConfig(); NewInst.Save(); }