Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }