Exemple #1
0
 public (int, Sorting, Usage, string) GetFilterParms(LineModel model) => FilterSort.GetParms(model);
Exemple #2
0
        /// <summary>We are scrolling back and forth in the flattened model hierarchy</summary>
        public (List <LineModel>, LineModel, bool, bool) GetCurrentView(int viewSize, LineModel leading, LineModel selected)
        {
            if (_buffer.IsEmpty)
            {
                _buffer.Refresh(Items[0], viewSize, leading);
            }

            var(list, eov, sov) = _buffer.GetList();

            if (IsInvalidModel(selected) || !list.Contains(selected))
            {
                selected = null;
            }


            return(list, selected, sov, eov);
        }
Exemple #3
0
 public void SetSorting(LineModel model, Sorting sorting) => FilterSort.SetSorting(model, sorting);
Exemple #4
0
 public void SetFilter(LineModel model, string text) => FilterSort.SetText(model, text);
Exemple #5
0
 public void SetUsage(LineModel model, Usage usage) => FilterSort.SetUsage(model, usage);
Exemple #6
0
 internal GraphModel_655(LineModel owner, Item item) : base(owner, item)
 {
 }
Exemple #7
0
 internal InsertCommand(LineModel owner, Action action) : base(owner, action)
 {
 }
Exemple #8
0
 internal LineCommand(LineModel model, Action action)
 {
     Owner  = model;
     Action = action;
 }
Exemple #9
0
 internal RemoveCommand(LineModel owner, Action action) : base(owner, action)
 {
 }