/// <summary>
        /// Constructor for a real BioEntity or Grouping row
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="entity"></param>
        /// <param name="pos"></param>
        public AlignmentEntityViewModel(AlignmentViewModel parent, IAlignedBioEntity entity, int pos)
        {
            Parent       = parent;
            _entity      = entity;
            Position     = pos;
            DisplayIndex = -1;

            if (entity is GroupHeader)
            {
                IsGroupHeader = true;
            }
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parent">Alignment view parent</param>
        public BirdsEyeViewModel(AlignmentViewModel parent)
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }

            Title        = "Birds Eye Viewer";
            ImageUrl     = "/Bio.Views.Alignment;component/images/bev_icon.png";
            _parent      = parent;
            _dataChanged = new PropertyObserver <AlignmentViewModel>(_parent);
            _dataChanged.RegisterHandler(v => v.TotalRows, v => StartBevGeneration());
            Entities = _parent.GroupedEntities;
            StartBevGeneration();
        }
Пример #3
0
 public SplitPaneViewModel(AlignmentViewModel parent)
 {
     _parent = parent;
 }
 /// <summary>
 /// Constructor for the separator version
 /// </summary>
 /// <param name="parent"></param>
 public AlignmentEntityViewModel(AlignmentViewModel parent)
 {
     Parent      = parent;
     IsSeparator = true;
     Position    = -1;
 }