Forget settings

Sep 5, 2007 at 12:49 PM
I have change set 9701.
It seems to forget the port and url when I reopen the settings form.
I think you are missing the following code
From \SvnBridge\Views\SettingsForm.cs
       public new void Show()
        {
            txtPortNumber.Text = presenter.Port.ToString();  
            txtTfsUrl.Text = presenter.TfsUrl;
            ShowDialog();
        }
From Presenters\ListenerViewPresenter.cs
        public void ChangeSettings(ISettingsView settingsView)
        {
            SettingsViewPresenter settingsViewPresenter = new SettingsViewPresenter(settingsView);
            settingsViewPresenter.Port = listener.Port;
            settingsViewPresenter.TfsUrl = listener.TfsUrl;
            settingsViewPresenter.Show();
 
            if ((!settingsViewPresenter.Cancelled) && (SettingsHaveChanged(settingsViewPresenter.Port, settingsViewPresenter.TfsUrl)))
            {
                ApplyNewSettings(settingsViewPresenter.Port, settingsViewPresenter.TfsUrl);
            }
        }
Sep 5, 2007 at 10:41 PM
Thanks, this is fixed now.