Esempio n. 1
0
 public HUDViewModel()
 {
     SelectedIndex = -1;
     Items         = new HUDItemCollection();
     TextBox       = new LowLevelTextBoxViewModel();
     CustomFilter  = new DefaultFilter();
 }
Esempio n. 2
0
 public void Initialize()
 {
     SelectedIndex = -1;
     DispatcherHelper.UIDispatcher.Invoke(() => Items = new HUDItemCollection());
     TextBox.Initialize();
     CustomFilter     = new DefaultFilter();
     CoordinateOrigin = new CoordinateOrigin();
     RaisePropertyChanged(nameof(CoordinateOrigin));
     ItemsCountPerPage = UIAssistantAPI.Instance.UIAssistantSettings.ItemsCountPerPage;
 }
Esempio n. 3
0
        public void Filter(ICollection <IHUDItem> items, string input)
        {
            var clonedItems = new HUDItemCollection(items);

            Items = new HUDItemCollection(CustomFilter.Filter(clonedItems, input));
        }
Esempio n. 4
0
 public void Update()
 {
     RaisePropertyChanged(nameof(BoundsList));
     Items = new HUDItemCollection(Items.OrderBy(x => x.Bounds.X));
 }