private UserHandle GetExpCollHandle(UserHandleCollection handleCollection) { for (int i = 0; i < handleCollection.Count; i++) { UserHandle handle = handleCollection[i]; if (handle.Name == "ExpColl") { return(handle); } } return(null); }
private void AddHandles() { DefaultHandles = new UserHandleCollection(diagram); DefaultHandles.Add(new UserHandle("Left", UserHandlePosition.Left, GetHandleImage("mindmapplus.png"))); DefaultHandles.Add(new UserHandle("Right", UserHandlePosition.Right, GetHandleImage("mindmapplus.png"))); DefaultHandles.Add(new UserHandle("ExpColl", UserHandlePosition.BottomLeft, GetHandleImage("mindmapexpand.png"))); DefaultHandles.Add(new UserHandle("Delete", UserHandlePosition.Bottom, GetHandleImage("mindmapdelete.png")) { Visible = false }); DefaultHandles.Add(new UserHandle("info", UserHandlePosition.TopRight, GetHandleImage("mindmapmore.png"))); diagram.UserHandles = DefaultHandles; }
private void AddHandles() { var template = new UIImageView(); template.Frame = new CGRect(0, 0, 25, 25); var img = new UIImage(path + "plus.png"); template.Image = img; var deltemplate = new UIImageView(); deltemplate.Frame = new CGRect(0, 0, 25, 25); img = new UIImage(path + "delete.png"); deltemplate.Image = img; ExpandTemplate = new UIImageView(); ExpandTemplate.Frame = new CGRect(0, 0, 25, 25); img = new UIImage(path + "expand.png"); ExpandTemplate.Image = img; CollapseTemplate = new UIImageView(); CollapseTemplate.Frame = new CGRect(0, 0, 25, 25); img = new UIImage(path + "collpase.png"); CollapseTemplate.Image = img; var moretemplate = new UIImageView(); moretemplate.Frame = new CGRect(0, 0, 25, 25); img = new UIImage(path + "more.png"); moretemplate.Image = img; DefaultHandles = new UserHandleCollection(diagram); DefaultHandles.Add(new UserHandle("Left", UserHandlePosition.Left, template)); DefaultHandles.Add(new UserHandle("Right", UserHandlePosition.Right, template)); DefaultHandles.Add(new UserHandle("ExpColl", UserHandlePosition.BottomLeft, CollapseTemplate)); DefaultHandles.Add(new UserHandle("info", UserHandlePosition.TopRight, moretemplate)); diagram.UserHandles = DefaultHandles; RightSideHandle = new UserHandleCollection(diagram); RightSideHandle.Add(new UserHandle("Right", UserHandlePosition.Right, template)); RightSideHandle.Add(new UserHandle("Delete", UserHandlePosition.Bottom, deltemplate)); RightSideHandle.Add(new UserHandle("ExpColl", UserHandlePosition.BottomLeft, CollapseTemplate)); RightSideHandle.Add(new UserHandle("info", UserHandlePosition.TopRight, moretemplate)); LeftSideHandles = new UserHandleCollection(diagram); LeftSideHandles.Add(new UserHandle("Left", UserHandlePosition.Left, template)); LeftSideHandles.Add(new UserHandle("Delete", UserHandlePosition.Bottom, deltemplate)); LeftSideHandles.Add(new UserHandle("ExpColl", UserHandlePosition.BottomLeft, CollapseTemplate)); LeftSideHandles.Add(new UserHandle("info", UserHandlePosition.TopRight, moretemplate)); }
internal AlertBox(Context context, MindMap mindmap, string content, SfDiagram sfDiagram, UserHandlePosition CurrentHandle, Node selectedNode, Node rootNode, int index, Random rnd, UserHandleCollection left, UserHandleCollection right, List <Color> SColor, List <Color> FColor) { alertBuilder = new AlertDialog.Builder(context); m_mindmap = mindmap; editText = new EditText(context); _inputstring = content; diagram = sfDiagram; this.CurrentHandle = CurrentHandle; SelectedNode = selectedNode; RootNode = rootNode; this.index = index; this.rnd = rnd; LeftSideHandles = left; RightSideHandle = right; this.SColor = SColor; this.FColor = FColor; }