public void Unload()
 {
     this.SourceControl.Dispose();
     this.DestinationControl.Dispose();
     this.SourceControl      = null;
     this.DestinationControl = null;
 }
 public IFront CreateSourceSelector()
 {
     this.SourceControl          = new SqlServerConnectFront();
     SourceControl.Location      = new Point(1, 1);
     SourceControl.Name          = "mySqlConnectFront1";
     SourceControl.Anchor        = (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);
     SourceControl.TabIndex      = 10;
     SourceControl.Text          = "Source Database:";
     SourceControl.UserName      = "******";
     SourceControl.Password      = "";
     SourceControl.ServerName    = "(local)";
     SourceControl.DatabaseIndex = 1;
     return(SourceControl);
 }
예제 #3
0
        public IFront CreateSourceSelector()
        {
            this.SourceControl = new SqlServerConnectFront
            {
                ServerName = "(local)",
                UseWindowsAuthentication = true,
                UserName     = "******",
                Password     = "",
                DatabaseName = ""
            };

            SourceControl.Location = new Point(1, 1);
            SourceControl.Name     = "SourceControl";
            SourceControl.Anchor   = (AnchorStyles)((int)AnchorStyles.Bottom + (int)AnchorStyles.Left + (int)AnchorStyles.Right);
            SourceControl.TabIndex = 10;
            SourceControl.Text     = "Source database:";

            return(SourceControl);
        }