コード例 #1
0
ファイル: FootnoteView.cs プロジェクト: sillsdev/WorldPad
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        /// ------------------------------------------------------------------------------------
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                base.OnMouseUp(e);
                return;
            }

            FwMainWnd mainWnd = TheMainWnd as FwMainWnd;

            if (mainWnd != null && mainWnd.TMAdapter != null)
            {
                EditingHelper.ShowContextMenu(e.Location, mainWnd.TMAdapter, this,
                                              "cmnuFootnoteView", "cmnuAddToDictFV", "cmnuChangeMultiOccurencesFV", "cmnuAddToDictFV",
                                              ((FootnoteEditingHelper)EditingHelper).ShowSpellingErrors);
            }
        }