예제 #1
0
 public ViewModel( /*SyncObject.*/Model syncObjectModel,
                   BannerRetrieverModel bannerRetrieverModel, 
                   IconRetrieverModel iconRetrieverModel )
 {
     this.Initialize( syncObjectModel, bannerRetrieverModel, iconRetrieverModel );
     this.RegisterPropertyChangedEvents();
 }
예제 #2
0
        private void Initialize( /*SyncObject.*/Model syncObjectModel, 
                                 BannerRetrieverModel bannerRetrieverModel, 
                                 IconRetrieverModel iconRetrieverModel )
        {
            this.Model = syncObjectModel;
            this.FullyAutomaticSyncVM = new FullyAutomaticSync.ViewModel( this.Model.FullyAutoSyncModel );
            this.SemiautoSyncVM = new SemiautomaticSync.ViewModel( this.Model.SemiautomaticSyncModel );

            this._bannerRetrieverModel = bannerRetrieverModel;
            this._iconRetrieverModel = iconRetrieverModel;
        }