コード例 #1
0
ファイル: Form1.cs プロジェクト: zenitsuga/Zenitsuga-Systems
 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();
 }
コード例 #2
0
        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
            {
            }
        }