private void LoadConfiguration() { //Should an error occur this.errorDelegation = new ErrorDelegation(ShowError); this.synchronizationDelegation = new SynchronizationDelegation(ShowProgress); this.frmSynchronize = new FrmSynchronize(); //Load the previous configuration this.configuration = new Configuration(errorDelegation); }
public void LoadRecipientsFromDataSource(SynchronizationDelegation sd) { DataSource source = new DataSource(Server, Database, User, Password, Row, Table); string[] recipients = source.GetRecipients(); Recipients.Clear(); if (recipients != null) { foreach (string recipient in recipients) { Recipients.Add(recipient); sd(recipients.Length); } } }