/// <summary> /// Initializes a new instance of the <see cref="ProductVM"/> class from the model. /// </summary> /// <param name="entity">The model.</param> /// <param name="access"></param> /// <param name="dataService"></param> public OrganizationChartVM(OrganizationChart entity, AccessType access, OrganizationChartDataService dataService) : base(access) { InitializeData(dataService); _model = entity; { PositionsVM = new OrganizationChartPositionsVM(this, Access); } }
public override void ViewItemLink(object param) { var relationIndex = Convert.ToInt32(param); switch (relationIndex) { case 0: PositionsVM = new OrganizationChartPositionsVM(this, Access); CurrentLink = PositionsVM; break; case 1: break; } base.ViewItemLink(param); }