private void buttonSyncDb_Click(object sender, EventArgs e) { using (CheckConnection childform = new CheckConnection()) { childform.setSyncDb(true); childform.ShowDialog(this); } }
private void dataGridViewResult_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { string dbDetail = dataGridViewResult.SelectedRows[0].Cells[0].Value.ToString(); string instanceDetail = dataGridViewResult.SelectedRows[0].Cells[1].Value.ToString(); if (!string.IsNullOrEmpty(instanceDetail)) { dbDetail = dbDetail + "\\" + instanceDetail; } CheckConnection newConnection = new CheckConnection(); newConnection.setDbDetails(dbDetail); newConnection.Show(); }
private void buttonCheckConnection_Click(object sender, EventArgs e) { CheckConnection newCheck = new CheckConnection(); newCheck.Show(); }