Esempio n. 1
0
 public Backuper(ConnectionConfig source, ConnectionConfig destination)
 {
     this.Source           = source;
     this.Destination      = destination;
     this.IsCompleted      = true;
     this.IsDateFiltration = false;
 }
Esempio n. 2
0
 protected void SavePorperties(ConnectionConfig conn)
 {
     if (conn.IsValidate)
     {
         switch (conn.Name)
         {
             case "Source":
                 Properties.Settings.Default.SourceServer = Source.Server;
                 Properties.Settings.Default.SourceUserId = Source.UserId;
                 Properties.Settings.Default.SourcePassword = Source.Password;
                 Properties.Settings.Default.SourceLoginSecurity = Source.LoginSecurity;
                 Properties.Settings.Default.SourceIsRemember = Source.IsRemember;
                 Properties.Settings.Default.Save();
                 break;
             case "Destination":
                 Properties.Settings.Default.DestinationServer = Destination.Server;
                 Properties.Settings.Default.DestinationUserId = Destination.UserId;
                 Properties.Settings.Default.DestinationPassword = Destination.Password;
                 Properties.Settings.Default.DestinationLoginSecurity = Destination.LoginSecurity;
                 Properties.Settings.Default.DestinationIsRemember = Destination.IsRemember;
                 Properties.Settings.Default.Save();
                 break;
         }
     }
 }