コード例 #1
0
        private void button_SaveIP_Click(object sender, EventArgs e)
        {
            string          server_ip = textBox_ServerIP.Text;
            string          user      = textBox_User.Text;
            string          password  = textBox_Password.Text;
            string          dbname    = textBox_dbname.Text;
            SQLiteOperation db        = new SQLiteOperation();

            db.updateIP_DB(server_ip, user, password, dbname);
            checkBox1.Checked = false;
            db.getLogDB(richTextBox_log);
        }
コード例 #2
0
        public void setDefault_vCenterDB()
        {
            SQLiteOperation  setDF  = new SQLiteOperation();
            SQLiteDataReader reader = setDF.query("select * from vCenterDB");

            while (reader.Read())
            {
                textBox_ServerIP.Text = reader[1].ToString();
                textBox_User.Text     = reader[2].ToString();
                textBox_Password.Text = reader[3].ToString();
                textBox_dbname.Text   = reader[4].ToString();
            }
            DateTime time = DateTime.Now;

            textBox_ServerIP.ReadOnly = true;
            textBox_User.ReadOnly     = true;
            textBox_Password.ReadOnly = true;
            textBox_dbname.ReadOnly   = true;
            setDF.getLogDB(richTextBox_log);
        }