/// <summary>
        ///     Initializes a new instance of the <see cref="ParametersPageViewModel"/> class.
        /// </summary>
        public ParametersPageViewModel(GeneratorControlViewModel owner)
            : base(owner)
        {
            _idocItems         = new List <ControlItem <RepositoryItem> >();
            this.IdocItemsView = CollectionViewSource.GetDefaultView(_idocItems);
            this.IdocItemsView.CurrentChanged += this.IdocItemsView_CurrentChanged;

            _idocTreeNodes         = new List <IdocTreeNode>();
            this.IdocTreeNodesView = CollectionViewSource.GetDefaultView(_idocTreeNodes);
            this.IdocTreeNodesView.CurrentChanged += this.IdocTreeNodesView_CurrentChanged;
        }
        /// <summary>
        ///     Initializes a new instance of the <see cref="ImportPageViewModel"/> class.
        /// </summary>
        public ImportPageViewModel(GeneratorControlViewModel owner)
            : base(owner)
        {
            _repositoryItems = new List <RepositoryItem>();

            this.RepositoryItemsView = CollectionViewSource.GetDefaultView(_repositoryItems);
            this.RepositoryItemsView.SortDescriptions.Add(
                new SortDescription(
                    Helper.GetPropertyName((RepositoryItem obj) => obj.Folder),
                    ListSortDirection.Ascending));
            this.RepositoryItemsView.CurrentChanged += this.RepositoryItemsView_CurrentChanged;
        }
Exemple #3
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="GeneratorControlSubViewModel"/> class.
        /// </summary>
        protected GeneratorControlSubViewModel(GeneratorControlViewModel owner)
        {
            #region Argument Check

            if (owner == null)
            {
                throw new ArgumentNullException("owner");
            }

            #endregion

            this.Owner = owner;
        }
Exemple #4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="WizardPageViewModel"/> class.
 /// </summary>
 public WizardPageViewModel(GeneratorControlViewModel owner)
     : base(owner)
 {
     // Nothing to do
 }