예제 #1
0
        public ProjectPage(Project project)
        {
            InitializeComponent();
            DataContext = this;

            persistor       = new Persistor();
            linkViewService = new LinkViewService();

            Project = project;

            var linkViews = LinkMappers.MapToView(project.Links);

            linkViews = new ObservableCollection <LinkView>(linkViews.OrderBy(link => link.Name));

            Links = linkViews;

            TilesControl.Init(Links, Project);
        }
예제 #2
0
 public SingleTileControl()
 {
     InitializeComponent();
     LayoutRoot.DataContext = this;
     linkViewService        = new LinkViewService();
 }