예제 #1
0
파일: Main.cs 프로젝트: Xcelled/MabiPale2
        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();
            }
        }
예제 #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();
            }
        }