public frmMandrillApiKey() { InitializeComponent(); Access = new AccessHelper(); ErrorProvider1 = new ErrorProvider(); MandrillAPIKey = new UDT.MandrillAPIKey(); this.Load += new EventHandler(Form_Load); }
private void Form_Load(object sender, EventArgs e) { List<UDT.MandrillAPIKey> MandrillAPIKeys = Access.Select<UDT.MandrillAPIKey>(); if (MandrillAPIKeys.Count > 0) { this.MandrillAPIKey = MandrillAPIKeys.ElementAt(0); this.txtAPIKey.Text = this.MandrillAPIKey.APIKey; } }