コード例 #1
0
        public void save_schedule()
        {
            string set = PCS.IniReadValue("main", "schedule");

            if (hourly_rb.Checked)
            {
                pcs.schtime("hourly");
                PCS.IniWriteValue("main", "schedule", "hourly");
            }
            else if (daily_rb.Checked && set != "daily")
            {
                pcs.schtime("daily");
                PCS.IniWriteValue("main", "schedule", "daily");
            }
            else if (weekly_rb.Checked)
            {
                pcs.schtime("weekly");
                PCS.IniWriteValue("main", "schedule", "weekly");
            }
            else if (monthly_rb.Checked)
            {
                pcs.schtime("monthly");
                PCS.IniWriteValue("settings\\downloadsettings.ini", "main", "schedule", "monthly");
            }
            else if (none_rb.Checked && set != "none")
            {
                TaskService ts = new TaskService();
                ts.RootFolder.DeleteTask(@"Performance Maintainer");
                PCS.IniWriteValue("main", "schedule", "none");
            }
        }