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); }
public void FromConfigFavorite(OptionsConversionContext context) { UrlConverter.UpdateFavoriteUrl(context.Favorite, context.ConfigFavorite.Url); }