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); } } }
private void ContextMenuStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { FpSheetView.Update(); }