private void 择题修改ToolStripMenuItem_Click(object sender, EventArgs e) { this.Visible = false; Form7 f7 = new Form7(); f7.ShowDialog(); this.Hide(); this.Visible = true; }
private void button1_Click_1(object sender, EventArgs e) { string datasource = textBox1.Text; string database = textBox2.Text; string username = textBox3.Text ?? ""; string userpass = textBox4.Text ?? ""; if (string.IsNullOrEmpty(datasource) || string.IsNullOrEmpty(database)) { MessageBox.Show("Ошибка! Не все поля заполнены.", "Ошибка соединения", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } if (DBConnectionService.SetSqlConnection(GetDBConnectionString(datasource, database, username, userpass))) { MessageBox.Show("Выполнен!", "Соединение подключено", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Hide(); Form7 sistema = new Form7(); sistema.ShowDialog(); this.Close(); } }
private void aÇIKLIKToolStripMenuItem_Click(object sender, EventArgs e) { Form7 acıklık = new Form7(); acıklık.ShowDialog(); }
private void столбецToolStripMenuItem_Click(object sender, EventArgs e) { Form7 form7 = new Form7(this); form7.ShowDialog(); }