// Кнопка "Подключиться" private void button1_Click(object sender, EventArgs e) { dB_UTIL.db_login = textBox1.Text; dB_UTIL.db_password = textBox2.Text; dB_UTIL.db_name = textBox3.Text; try { dB_UTIL.DB_CONNECT(); label6.Text = "OK!"; label6.ForeColor = Color.Green; sETTING.db_status = label6.Text; } catch (Exception ex) { label6.Text = "Error!"; label6.ForeColor = Color.Red; LIB_UTIL.MassageError(ex); sETTING.db_status = label6.Text; } }
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { string s = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); LIB_UTIL.Massage(s); }