public Settings() { InitializeComponent(); var serverUrl = SettingsUtilities.LoadSetting("serverurl"); if (serverUrl != null) { serverUrlBox.Text = serverUrl.ToString(); } }
private void CreateServerConnection() { var serverUrl = SettingsUtilities.LoadSetting("serverurl"); if (serverUrl != null) { _persist = new Persist(serverUrl.ToString()); } else { _persist = new Persist("NOSERVER"); } }