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");
            }
        }
 private void OkButton_Click(object sender, RoutedEventArgs e)
 {
     SettingsUtilities.SaveSetting("serverurl", serverUrlBox.Text);
     this.DialogResult = true;
     this.Close();
 }