Exemplo n.º 1
0
        private void FpSheetView_MouseUp(object sender, MouseEventArgs e)
        {
            if (Yqun.Common.ContextCache.ApplicationContext.Current.IsAdministrator)
            {
                if (e.Button == MouseButtons.Right)
                {
                    Point    pt   = FpSheetView.PointToClient(Cursor.Position);
                    TreeNode Node = FpSheetView.HitTest(pt).Node;
                    FpSheetView.SelectedNode = Node;

                    SheetContextMenu.Show(FpSheetView, pt);
                }
            }
        }
Exemplo n.º 2
0
 private void ContextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     FpSheetView.Update();
 }