private void FormConfiguration_Load(object sender, EventArgs e) { OpSQLlite conn = new OpSQLlite(); if (conn.ExistConf()) { textBoxOriginDoc.Text = conn.Getconfiguration(2); textBoxTimeSAP.Text = conn.Getconfiguration(3); textBoxFieldKey.Text = conn.Getconfiguration(4); textBoxQueueName.Text = conn.Getconfiguration(1); textBoxTimeStart.Text = conn.Getconfiguration(5); textBoxTimeEnd.Text = conn.Getconfiguration(6); if (textBoxTimeStart.Text is null) { checkBox1.Checked = false; } else { textBoxTimeEnd.Text = ""; } //if (String.Compare(conn.Getconfiguration(7)., "false")) //{ // checkImport.Checked = false; //} //else //{ // checkImport.Checked = true; //} } conn.CloseConnection(); }