public void Unload() { this.SourceControl.Dispose(); this.DestinationControl.Dispose(); this.SourceControl = null; this.DestinationControl = null; }
public object Clone() { var clone = new SqlServerConnectFront { ServerName = this.ServerName, UseWindowsAuthentication = this.UseWindowsAuthentication, UserName = this.UserName, Password = this.Password, DatabaseName = this.DatabaseName }; clone.Location = new System.Drawing.Point(1, 1); clone.Name = "SourceControl"; clone.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; return(clone); }
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); }