Exemplo n.º 1
0
        public SWRConditionSettingForm(ConfigSWRData setting, List <SWRAssociationCondition> conditions)
        {
            InitializeComponent();

            this.currentSetting   = setting;
            this.currentCondition = conditions;
        }
Exemplo n.º 2
0
        /// <summary>
        /// 기상특보 웹서비스 접속 정보 설정
        /// </summary>
        /// <param name="info"></param>
        public void SetConnectionInfo(ConfigSWRData info)
        {
            System.Diagnostics.Debug.Assert(info != null);
            FileLogManager.GetInstance().WriteLog("[SWRServiceManager] SetConnectionInfo( )");

            this.currentServiceKey = info.ServiceKey;
            this.requestCycleBySec = (uint)(info.CycleTimeMinute * 60);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 기상 특보 웹서비스 접속 정보 갱신
        /// </summary>
        /// <param name="newData">새 설정 정보</param>
        public void SaveConfigInfo(ConfigSWRData newData)
        {
            WriteKeyValueToSWR(this.SWR_USE, string.Format("{0}", Convert.ToInt32(newData.UseService)));
            WriteKeyValueToSWR(this.SWR_KEY, newData.ServiceKey);
            WriteKeyValueToSWR(this.SWR_CYCLE, newData.CycleTimeMinute.ToString());

            this.configData.SWR.UseService      = newData.UseService;
            this.configData.SWR.ServiceKey      = newData.ServiceKey;
            this.configData.SWR.CycleTimeMinute = newData.CycleTimeMinute;
        }