Exemple #1
0
        private void ShotForm_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Left)
            {
                Close();
                return;
            }

            m_state.End();
            Image = m_state.Capture();

            if (Image == null)
            {
                DialogResult = DialogResult.Cancel;
            }

            DialogResult = DialogResult.OK;
            Close();
        }
 public void CapturePacket(PacketDecoder packet)
 {
     state.Capture(this, packet);
 }