예제 #1
0
            public Context(
                IResolver resolver,
                Navigator navigator) : base(resolver)
            {
                this.navigator = navigator;

                this.WhenAnyValue(x => x.SelectedFile)
                .Where(f => f != null && !f.IsDirectory)
                .Subscribe(ObserveFileSelection);

                navigator.WhenOpened()
                .Subscribe(ObserveOpening);

                // TODO: remove this
                var root = navigator.BuildFileTree(Path.GetFullPath(".\\Files"));

                navigator.Open(root);
            }