Exemple #1
0
        void LoadMarqueeLinkTargetListBox(LinkTargets selected)
        {
            MarqueeLinkTargetListBox.Items.Clear();

            foreach (string name in Enum.GetNames(typeof(LinkTargets)))
            {
                string Title = string.Empty;

                if (name == "_blank")
                {
                    Title = "New window";
                }
                if (name == "_self")
                {
                    Title = "Current window";
                }
                if (name == "_top")
                {
                    Title = "Top window";
                }

                if (Title != string.Empty)
                {
                    ListItem itm = new ListItem(Title, name);
                    if (name == selected.ToString())
                    {
                        itm.Selected = true;
                    }

                    MarqueeLinkTargetListBox.Items.Add(itm);
                }
            }
        }
 /// <summary>
 /// Create all link sources and targets provided by this shape
 /// </summary>
 public override void CreateAllLinks()
 {
     base.CreateAllLinks();
     LinkTargets.Add(new LinkTargetVisiblity(this, "VisibilityTarget_1"));
 }
Exemple #3
0
 /// <summary>
 /// Create all link sources and targets provided by this shape
 /// </summary>
 public override void CreateAllLinks()
 {
     base.CreateAllLinks();
     LinkTargets.Add(new LinkTargetConstraint(this, "ConstraintTarget_1")); // add link target that allows to assign the constraint to particle groups
 }