// look this up in dictionary private void toolStripLabel1_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtScan.Text)) { btnDictionary_OnClick(sender, e); return; } bool found = false; foreach (Form f in Application.OpenForms) { if (f.GetType() == typeof(frmDagYig)) { found = true; ((frmDagYig)f).BringToFront(); ((frmDagYig)f).LookUpOnOpen(txtScan.Text); break; } } if (!found) { frmDagYig dict = new frmDagYig(txtScan.Text); // UnregisterClipboardViewer(); dict.MyParentForm = this; dict.Show(); } }
private void btnDictionary_OnClick(object sender, EventArgs e) { bool found = false; foreach (Form f in Application.OpenForms) { if (f.GetType() == typeof(frmDagYig)) { found = true; ((frmDagYig)f).BringToFront(); break; } } if (!found) { frmDagYig dict = new frmDagYig(""); dict.BringToFront(); // UnregisterClipboardViewer(); dict.MyParentForm = this; dict.Show(); } }
private void button2_Click_1(object sender, EventArgs e) { Form dy = new frmDagYig(); dy.Show(); }