예제 #1
0
 private void GetDBSettings()
 {
     tmrLoading.Stop();
     try
     {
         cvs = new clsVariableSettings();
         cvs = cv.ValidateIni();
         if (cvs != null)
         {
             Servername   = cvs.ServerName;
             Databasename = cvs.DatabaseName;
             DBUsername   = cvs.UserName;
             DBPassword   = cvs.Password;
             SystemName   = cvs.SystemCode;
         }
     }
     catch
     {
     }
     tmrLoading.Start();
 }
        private void LoadINI()
        {
            try
            {
                cvs = new clsVariableSettings();
                cvs = cv.ValidateIni();
                if (cvs != null)
                {
                    tbCompanyName.Text = cvs.CompanyName;
                    tbLicense.Text     = cvs.LicenseCode;
                    tbActivation.Text  = cvs.ActivationCode;

                    tbServerName.Text   = cvs.ServerName;
                    tbDatabasename.Text = cvs.DatabaseName;
                    tbDBUsername.Text   = cvs.UserName;
                    tbDBPassword.Text   = cvs.Password;
                }
            }
            catch
            {
            }
        }