public void Initialize() { ServicesHelper.RegisterMockServices(); //Arbre initial : // G1 1 // T1 1.1 // T2 1.2 // T21 1.2.1 // T22 1.2.2 // T3 1.3 // T31 1.3.1 // T4 1.4 _g1 = new KAction() { Label = "G1", WBS = "1" }; _t1 = new KAction() { Label = "T1", WBS = "1.1" }; _t2 = new KAction() { Label = "T2", WBS = "1.2" }; _t21 = new KAction() { Label = "T21", WBS = "1.2.1" }; _t22 = new KAction() { Label = "T22", WBS = "1.2.2" }; _t3 = new KAction() { Label = "T3", WBS = "1.3" }; _t31 = new KAction() { Label = "T31", WBS = "1.3.1" }; _t4 = new KAction() { Label = "T4", WBS = "1.4" }; _actions = new KAction[] { _g1, _t1, _t2, _t21, _t22, _t3, _t31, _t4 }; _collection = new BulkObservableCollection <DataTreeGridItem>(); _manager = new GridActionsManager(_collection, v => _currentItem = v, null); _manager.ChangeView(GanttGridView.WBS, null); }
/// <summary> /// Appelé lorsque la valeur de la propriété <see cref="CurrentGridItem"/> a changé. /// </summary> /// <param name="previousValue">The previous value.</param> /// <param name="newValue">The new value.</param> protected override void OnCurrentGridItemChanged(DataTreeGridItem previousValue, DataTreeGridItem newValue) { base.OnCurrentGridItemChanged(previousValue, newValue); OnPropertyChanged(nameof(CanChangeActionVideo)); }