posted by 방랑군 2009. 9. 8. 16:45

        private string AppConfigRead(string keyName)

        {

            string strReturn;

            Configuration currentConfig =

                ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

 

            if (currentConfig.AppSettings.Settings.AllKeys.Contains(keyName))

                strReturn = currentConfig.AppSettings.Settings[keyName].Value;

            else

                strReturn = ""; //키가없으면.

 

            return strReturn;

        }

 

        private bool AppConfigWrite(string keyName, string value)

        {

            Configuration currentConfig =

                ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

 

            if (currentConfig.AppSettings.Settings.AllKeys.Contains(keyName)) //키가 있으면

                currentConfig.AppSettings.Settings[keyName].Value = value;

            else       //키가 없으면

                currentConfig.AppSettings.Settings.Add(keyName, value);

           

            currentConfig.Save();

            ConfigurationManager.RefreshSection("appSettings");   // 내용 갱신             

            return true;

        }

posted by 방랑군 2009. 9. 8. 14:40

개발 관점

 1. 개발시 기술적 보조 없이 할 수 있나 없나...
 2. 업무적 기술을 가지고 구현을 할수 있나 없나 ...
 3. 업무적, 기술적 관리가 가능 한가 ...

운영 관점

 1. 프로그램적으로 문제가 생겨 발생된 문제인가
 2. 업무적으로 구현이 안되어 있어서 발생된 문제인가
 3. 기술적으로 문제가 없는데 프로세스적으로 안되어 있어서 발생된 문제인가.