示例#1
0
 private void listValues_ItemAdded(object sender, ArrangedItemEntry Item)
 {
     ValuesChanged();
 }
 internal void Add(ArrangedItemEntry item)
 {
     _Owner.listItems.SelectedItems.Add(item);
     _Owner.UpdateUI();
 }
示例#3
0
        private ArrangedItemEntry listValues_AddingItem(object sender)
        {
            var item = new ArrangedItemEntry(editValueEntry.Text);

            return(item);
        }
 internal void Insert(int v, ArrangedItemEntry item)
 {
     _Owner.listItems.Items.Insert(v, item);
     FixItemIndices();
     _Owner.UpdateUI();
 }
 internal void Remove(ArrangedItemEntry item)
 {
     _Owner.listItems.SelectedItems.Remove(item);
     _Owner.UpdateUI();
 }
 internal void Remove(ArrangedItemEntry item)
 {
     _Owner.listItems.Items.Remove(item);
     FixItemIndices();
     _Owner.UpdateUI();
 }
示例#7
0
        private ArrangedItemEntry listValues_CloningItem(object sender, ArrangedItemEntry Item)
        {
            var item = new ArrangedItemEntry(Item.Text);

            return(item);
        }
示例#8
0
 private void listValues_ItemMoved(object sender, ArrangedItemEntry Item1, ArrangedItemEntry Item2)
 {
     ValuesChanged();
 }
示例#9
0
 private void listBuildChainProjects_ItemMoved(object sender, ArrangedItemEntry Item1, ArrangedItemEntry Item2)
 {
     BuildChain.Entries.Clear();
     foreach (ArrangedItemEntry item in listBuildChainProjects.Items)
     {
         var entry = (BuildChainEntry)item.Tag;
         BuildChain.Entries.Add(entry);
     }
     Element.DocumentInfo.Project.SetModified();
 }
示例#10
0
 private void paletteList_ItemRemoved(object sender, ArrangedItemEntry Item)
 {
     Colors.Palettes.Remove((Palette)Item.Tag);
 }