Esempio n. 1
0
 private void InitConfigurationStruct()
 {
     mCBConfigName.Items.Clear();
     mCBConfigName.Items.AddRange(RCConfigurationList.GetNameList());
     mCBConfigName.Text = RCConfigurationList.GetCurrent().configurationName;
     LoadConfigurationStruct();
 }
Esempio n. 2
0
        private void mBtnBrz_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Multiselect = false;
            ofd.Title       = "Select";
            ofd.Filter      = "Executable File|*.exe";
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                RCConfigurationList.GetCurrent().configurationExePath = ofd.FileName;
            }
        }
Esempio n. 3
0
        public void SaveConfigurationStruct()
        {
            //ConfigurationList.GetCurrent().configurationName = mTBConfigName.Text;
            RCConfigurationList.GetCurrent().configurationDescription       = mTBDesc.Text;
            RCConfigurationList.GetCurrent().configurationConnectionTimeout = int.Parse(mTBTimeout.Text);
            RCConfigurationList.GetCurrent().configurationIPPort            = mTBIP.Text;
            RCConfigurationList.GetCurrent().configurationSchema            = mTBSchema.Text;
            RCConfigurationList.GetCurrent().configurationUsername          = mTBUserName.Text;
            RCConfigurationList.GetCurrent().configurationPassword          = mTBPassword.Text;

            if (mRBHANA.Checked)
            {
                RCConfigurationList.GetCurrent().configurationDBType = ConfigurationDBType.C_HANA;
            }
            else if (mRBMSSQL.Checked)
            {
                RCConfigurationList.GetCurrent().configurationDBType = ConfigurationDBType.C_MSSQL;
            }
            RCConfigurationList.GetCurrent().configurationExePath = mTBExePath.Text;
        }
Esempio n. 4
0
        private void LoadConfigurationStruct()
        {
            mTBDesc.Text     = RCConfigurationList.GetCurrent().configurationDescription;
            mTBTimeout.Text  = RCConfigurationList.GetCurrent().configurationConnectionTimeout.ToString();
            mTBIP.Text       = RCConfigurationList.GetCurrent().configurationIPPort;
            mTBSchema.Text   = RCConfigurationList.GetCurrent().configurationSchema;
            mTBUserName.Text = RCConfigurationList.GetCurrent().configurationUsername;
            mTBPassword.Text = RCConfigurationList.GetCurrent().configurationPassword;

            if (RCConfigurationList.GetCurrent().configurationDBType == ConfigurationDBType.C_HANA)
            {
                mRBHANA.Checked = true;
            }
            else
            {
                mRBMSSQL.Checked = true;
            }

            mTBExePath.Text = RCConfigurationList.GetCurrent().configurationExePath;
        }