Esempio n. 1
0
        public override void Initialize(BuildProject currentObject)
        {
            if (currentObject == null)
            {
                throw new ArgumentNullException("currentObject");
            }

            this.InitializeComponent();

            //Set the DataContext of the page
            this.MainGrid.DataContext = currentObject;

            //build the actions list (divide by item groups)
            this.ProjectActions.Items.Clear();

            foreach (TreeViewItem bAction in currentObject.CreateActionList())
            {
                this.ProjectActions.Items.Add(bAction);
            }
        }