private void marketWatchToolStripMenuItem_Click(object sender, EventArgs e) { _frmMktWatch = new frmMktWatch(); // _frmMktWatch.WindowState = FormWindowState.Minimized; _frmMktWatch.MdiParent = this; UDP_Reciever.Instance.OnDataArrived += _frmMktWatch.OnDataArrived; _frmMktWatch.Show(); }
private void marketWatchToolStripMenuItem_Click(object sender, EventArgs e) { if (_frmMktWatch == null) { _frmMktWatch = new frmMktWatch(); // _frmMktWatch.WindowState = FormWindowState.Minimized; // UDP_Reciever.Instance.OnDataArrived += _frmMktWatch.OnDataArrived; } _frmMktWatch.MdiParent = this; _frmMktWatch.Show(); }