예제 #1
0
        static public TimerConfig GetConfig(string sectionName)
        {
            TimerConfig tc = new TimerConfig();

            try
            {
                SettingItem timerSetting = AppSettingHelper.GetSpecifySection(sectionName);

                tc.LastTime1 = timerSetting.ReadDatetime("LastTime1");
                tc.LastTime1 = timerSetting.ReadDatetime("LastTime2");
                tc.LastTime1 = timerSetting.ReadDatetime("LastTime3");
                tc.LastTime1 = timerSetting.ReadDatetime("LastTime4");
                tc.LastTime5 = timerSetting.ReadDatetime("LastTime5");
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex);
            }

            return(tc);
        }