Пример #1
0
 public void ClearSelections()
 {
     if (selections.Count > 0)
     {
         selections.Clear();
         foreach (Item item in store)
         {
             item.Selected = false;
         }
         scene.RePaint();
     }
 }
Пример #2
0
 public void CutWidgets()
 {
     _clipboard.Clear();
     foreach (BaseWidget widget in _selections)
     {
         Band band = _model.Bands[widget.Row];
         band.Items.Remove(widget);
         _clipboard.Add(widget);
     }
     _selections.Clear();
     RenderControls();
     OnSelectionChanged();
     OnClipBoardChanged();
 }
Пример #3
0
        private void OnEnable()
        {
            if (m_categoryList != null)
            {
                m_categoryList.items.Clear();
                m_staticIdList = new List <Int32>();
                m_categoryList.items.Add("Armor");
                m_categoryList.items.Add("Jewelry");
                m_categoryList.items.Add("Shields");
                m_categoryList.items.Add("Melee Weapons");
                m_categoryList.items.Add("Magic Focus");
                m_categoryList.items.Add("Ranged Weapons");
                m_categoryList.items.Add("Potions");
                m_categoryList.items.Add("Scrolls");
            }
            m_prefixList.items.Clear();
            m_suffixList.Clear();
            IEnumerable <PrefixStaticData> iterator  = StaticDataHandler.GetIterator <PrefixStaticData>(EDataType.PREFIX);
            IEnumerable <SuffixStaticData> iterator2 = StaticDataHandler.GetIterator <SuffixStaticData>(EDataType.SUFFIX);

            m_prefixList.items.Add("0: NONE");
            foreach (PrefixStaticData prefixStaticData in iterator)
            {
                m_prefixList.items.Add(prefixStaticData.StaticID + ": " + prefixStaticData.Name);
            }
            m_suffixList.AddItem("0: NONE");
            foreach (SuffixStaticData suffixStaticData in iterator2)
            {
                m_suffixList.AddItemWithoutReposition(suffixStaticData.StaticID + ": " + suffixStaticData.Name);
            }
            m_suffixList.ReposItems();
            SelectItemCategory("Armor");
        }
 void ClearVariables()
 {
     focusedMasterKey   = null;
     focusedDetailKey   = null;
     focusedGroupValues = null;
     SelectionList.Clear();
     MasterRowList.Clear();
     GroupRowList.Clear();
 }
Пример #5
0
 /// <summary>
 ///     Deseleccionar todo
 /// </summary>
 private void clearSelection()
 {
     foreach (var p in SelectionList)
     {
         p.Selected = false;
     }
     SelectionList.Clear();
     updateUiPanel();
 }
        void SaveSelectionView()
        {
            SelectionList.Clear();
            var selectedRows = gridControl.GetSelectedRowHandles();

            for (int i = 0; i < selectedRows.Length; i++)
            {
                SelectionList.Add(GetKeyByRowHandle(selectedRows[i]));
            }
        }
Пример #7
0
 public void FocusOn(EventFrame frame, EventNode node)
 {
     Group = frame.Group;
     SelectionList.Clear();
     SelectionList.Add(new Selection()
     {
         Frame = frame, Node = node
     });
     UpdateSurface();
 }
Пример #8
0
        public void FocusOn(EventFrame frame, EventNode node)
        {
            Group = frame.Group;
            SelectionList.Clear();
            SelectionList.Add(new Selection()
            {
                Frame = frame, Node = node
            });

            Interval interval = scroll.TimeToUnit(node != null ? (IDurable)node.Entry : (IDurable)frame);

            if (!scroll.ViewUnit.Intersect(interval))
            {
                scroll.ViewUnit.Width = interval.Width * DefaultFrameZoom;
                scroll.ViewUnit.Left  = interval.Left - (scroll.ViewUnit.Width - interval.Width) * 0.5;
                scroll.ViewUnit.Normalize();
                UpdateBar();
            }

            UpdateSurface();
        }
Пример #9
0
 public void Clear()
 {
     _list.Clear();
 }