예제 #1
0
        public Settings()
        {
            InitializeComponent();
            var serverUrl = SettingsUtilities.LoadSetting("serverurl");

            if (serverUrl != null)
            {
                serverUrlBox.Text = serverUrl.ToString();
            }
        }
예제 #2
0
        private void CreateServerConnection()
        {
            var serverUrl = SettingsUtilities.LoadSetting("serverurl");

            if (serverUrl != null)
            {
                _persist = new Persist(serverUrl.ToString());
            }
            else
            {
                _persist = new Persist("NOSERVER");
            }
        }