private void OnClick(object sender, EventArgs e) { if (form == null || form.IsDisposed) manager.OpenCentered(form = new FrmInfo()); else form.Focus(); var selected = manager.GetSelectedPacket(); if (selected != null) { OnSelected(selected); selected.Packet.Rewind(); } }
private void OnClick(object sender, EventArgs e) { if (form == null || form.IsDisposed) { manager.OpenCentered(form = new FrmInfo()); } else { form.Focus(); } var selected = manager.GetSelectedPacket(); if (selected != null) { OnSelected(selected); selected.Packet.Rewind(); } }