BF2Statistics.SnapshotViewForm.SnapshotView_MouseClick C# (CSharp) Method

SnapshotView_MouseClick() private method

Event fired when the user right clicks, to open the context menu
private SnapshotView_MouseClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void SnapshotView_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right && SnapshotView.FocusedItem.Bounds.Contains(e.Location))
            {
                MenuStrip.Show(Cursor.Position);
            }
        }