コード例 #1
0
        private void FillGeneralProrperties(IFavorite favorite)
        {
            favorite.Name       = (String.IsNullOrEmpty(this.txtName.Text) ? this.cmbServers.Text : this.txtName.Text);
            favorite.ServerName = this.cmbServers.Text;
            var protocol = this.ProtocolComboBox.Text;

            this.connectionManager.ChangeProtocol(favorite, protocol);
            Int32 port;

            Int32.TryParse(this.PortText, out port);
            favorite.Port = port;
            UrlConverter.UpdateFavoriteUrl(favorite, this.httpUrlTextBox.Text);
        }
コード例 #2
0
 public void FromConfigFavorite(OptionsConversionContext context)
 {
     UrlConverter.UpdateFavoriteUrl(context.Favorite, context.ConfigFavorite.Url);
 }