コード例 #1
0
 private void incarcaVariabileBDD()
 {
     this.lServerAles   = this.cboListaServere.SelectedItem as ServerSQL;
     this.lNumeServer   = this.txtServerManual.Text;
     this.lNumeInstanta = this.txtNumeInstantaSQL.Text.Trim();
     this.lNumeUser     = this.txtUserSQL.Text.Trim();
     this.lParolaSQL    = this.txtParolaSQL.Text.Trim();
     if (this.cboBDD.SelectedItem != null)
     {
         this.lNumeBDD = Convert.ToString(this.cboBDD.SelectedItem);
     }
 }
コード例 #2
0
 public object Clone()
 {
     try
     {
         if (this == null)
         {
             return(null);
         }
         ServerSQL SqlSL = new ServerSQL {
             ServerName = ServerName, InstanceName = InstanceName, IsClustered = IsClustered, Version = Version
         };
         return(SqlSL);
     }
     catch
     {
         throw new NotImplementedException();
     }
 }