コード例 #1
0
        public void SetSettingData(RunHistoryItem runHistoryItem)
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("런       처 : " + (runHistoryItem.IsRun ? "정상" : "오류"));
            sb.AppendLine("업데이트상태 : " + runHistoryItem.AutoSyncStatus);
            sb.AppendLine("업데이트일자 : " + runHistoryItem.LastUpdateDate);
            sb.AppendLine("웹소켓  주소 : " + runHistoryItem.WebSocketInfo);
            sb.AppendLine("서   버   명 : " + runHistoryItem.ServerHost);
            sb.AppendLine("실행    모드 : " + (runHistoryItem.ServerInfo.Equals("R") ? "운영" : "개발") + "(" + runHistoryItem.ServerInfo + ")");

            txtSettingData.Text = sb.ToString();
        }
コード例 #2
0
        private void InitializeProperties()
        {
            ApplicationConfig.InitializeAppSettings();
            lastSecurityId = Properties.Settings.Default.LastSecurityId;
            CryptographyHelper.AES.InitLastRequestIndex(lastSecurityId);

            runHistoryItem = new RunHistoryItem
            {
                IsRun      = false,
                ServerHost = ApplicationConfig.ServerHost,
                ServerInfo = ApplicationConfig.Mode,
                CreateDate = DateTime.Now.ToString(),
            };
        }