public void Redraw() { if (MyRootControl != null) { MyRootControl.Redraw(); } }
/* TODO ERROR: Skipped RegionDirectiveTrivia */ public object GetView(ViewTechnology technology) { var monmenustrip = new ContextMenuStrip(); _rootView = new MyRootControl(this); return(_rootView); }
protected override void OnMouseUp(MouseWithKeysEventArgs e) { if (e.Handled == true) { return; } bool shouldShowPopupMenu = e.IsRightButtonPressed; using (Redrawer r = new Redrawer(Root)) { if (DragState != null) { if (DragState.Result != null) { DragState.Query.ShouldCopyInsteadOfMove = e.IsCtrlPressed; DragState.Result.DropTargetContainer.AcceptBlocks( DragState.Query, DragState.Result); shouldShowPopupMenu = false; e.Handled = true; } else { if (DragState.DragStarted) { shouldShowPopupMenu = false; e.Handled = true; } } DragState = null; } if (shouldShowPopupMenu && e.IsRightButtonPressed) { Block rightClicked = FindBlockAtPoint(e.X, e.Y); if (rightClicked != null && rightClicked.Menu != null && rightClicked.MyControl.HitTest(e.X, e.Y)) { if (rightClicked.CanGetFocus) { rightClicked.SetFocus(); } MyRootControl.ShowPopupMenu(rightClicked.Menu, e.Location); e.Handled = true; } } } }
public object GetView(System.ComponentModel.Design.ViewTechnology technology) { _rootView = new MyRootControl(this); return _rootView; }
public object GetView(System.ComponentModel.Design.ViewTechnology technology) { _rootView = new MyRootControl(this); return(_rootView); }