Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        public static void InitializeStartingConfig()
        {
            IgorConfig NewInst = new IgorConfig();

            NewInst.Save();
        }