/* * Send a CFind query to the MWL server */ private void btnQueryServer_Click(object sender, EventArgs e) { try { m_bQuerySucceeded = false; StartUpdate(_globals.m_TreeResult); txtLog.Text = ""; if (_globals.m_nQueryType == 1) // broad { cfind.Find(_globals.m_MWLServer, FindType.MWLBroad, dcmQuery, _globals.m_strMWLClientAE); } else // patient { cfind.Find(_globals.m_MWLServer, FindType.MWLPatient, dcmQuery, _globals.m_strMWLClientAE); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void MainForm_Load(object sender, EventArgs e) { CFindQuery dcmQuery = new CFindQuery(); cfind.Find(server, FindType.Study, dcmQuery, AETitle); }