コード例 #1
0
ファイル: AppSet.cs プロジェクト: ImanRezaeipour/GTS
        private void LoadData(string config)
        {
            GTSAppSettings.LoadFromFile(config);

            serverTB.Text              = GTSAppSettings.SQLConnection.DataSource;
            DBTB.Text                  = GTSAppSettings.SQLConnection.Database;
            serviceRefTb.Text          = GTSAppSettings.WebServiceAddress;
            logDBTB.Text               = GTSAppSettings.LogSQLConnection.Database;
            logserverTB.Text           = GTSAppSettings.LogSQLConnection.DataSource;
            logUserNameTB.Text         = GTSAppSettings.LogUserName;
            logPasswordTB.Text         = GTSAppSettings.LogPassword;
            usernameTB.Text            = GTSAppSettings.GTSUserName;
            passwordTB.Text            = GTSAppSettings.GTSPassword;
            GTSAppSettings.SettingName = config;
        }
コード例 #2
0
 private void MainPage_Load(object sender, EventArgs e)
 {
     GTSAppSettings.LoadFromFile();
 }