public VFExchangeConfig() { InitializeComponent(); this.AcceptButton = this.btnSave; this.txtUsername.Text = Properties.Settings.Default.VehicleForgeUsername; this.mtbPassword.Text = string.Empty; this.comboVehicleForgeURL.Items.Add(GAMMA_URL); this.comboVehicleForgeURL.Items.Add(BETA_URL); if (string.IsNullOrWhiteSpace(Properties.Settings.Default.LastVehicleForgeUrl)) { this.comboVehicleForgeURL.Text = GAMMA_URL; } else { this.comboVehicleForgeURL.Text = Properties.Settings.Default.LastVehicleForgeUrl; } this.Credentials = new Credentials(this.comboVehicleForgeURL.Text, this.txtUsername.Text, this.mtbPassword.Text); }
public Credentials(Credentials otherCredentials) : this(otherCredentials.Url, otherCredentials.Username, otherCredentials.Password) { }