예제 #1
0
        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);
        }
예제 #2
0
        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);
                }
            }
        }