Example #1
0
        private bool OpenBoardView(string uri)
        {
            var file = new FileInfo(uri);

            if (!file.Exists)
            {
                return(false);
            }

            var scope = appModel.LoadScope(uri);

            var title = file.FullName;

            shell.ShowDistinctView <BoardView>(title,
                                               viewRequest: new BoardViewRequest {
                Scope = scope
            },
                                               options: new UiShowOptions {
                Title = title
            });

            AddRecent(uri);

            return(true);
        }
Example #2
0
        }//ctor

        private bool OpenBoardView(string uri)
        {
            var file = new FileInfo(uri);

            if (!file.Exists)
            {
                return(false);
            }

            var scope = appModel_.LoadScope(uri);

            shell_.ShowView <BoardView>(
                viewRequest: new BoardViewRequest {
                Scope = scope
            },
                options: new UiShowOptions {
                Title = file.Name
            });

            return(true);
        }