public void Save()
 {
     _settings.Set(new Setting()
     {
         Name = YurtleTrackPlugin.URLOPTIONNAME, Value = _view.URL
     });
     _settings.Set(new Setting()
     {
         Name = YurtleTrackPlugin.USEROPTIONNAME, Value = _view.UserName
     });
     _settings.Set(new Setting()
     {
         Name = YurtleTrackPlugin.PASSWORDOPTIONNAME, Value = _view.Password, Encrypt = true
     });
 }
        protected override void OnClosing(CancelEventArgs e)
        {
            //Only save our settings if nothing funny happened on settings load
            if (_settingsLoaded)
            {
                _viewSettings.Set(new Setting()
                {
                    Name = "LocationX", Value = this.Location.X.ToString()
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "LocationY", Value = this.Location.Y.ToString()
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "SizeWidth", Value = this.Size.Width.ToString()
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "SizeHeight", Value = this.Size.Height.ToString()
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "LastCommandText", Value = textBoxCommand.Text
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "LastUseCommand", Value = checkBoxApplyCommand.Checked.ToString()
                });
                _viewSettings.Set(new Setting()
                {
                    Name = "FilterQuery", Value = FilterQuery
                });

                if (bindingSourceProjects.Current != null)
                {
                    _viewSettings.Set(new Setting()
                    {
                        Name = "LastProjectID", Value = ((IProject)bindingSourceProjects.Current).ID
                    });
                }
            }            //end if

            base.OnClosing(e);
        }