Example #1
0
        private void Previous()
        {
            string filePath = _fileCollection.GetPreviousPath();

            PreviewControl.ReplaceContent(filePath);
            this.Title = filePath;
        }
Example #2
0
        public MainWindow()
        {
            NextCommand     = new RelayCommand(Next);
            PreviousCommand = new RelayCommand(Previous);

            InitializeComponent();

            string dir = @"C:\Test\Pictures\视频音频";

            if (!Directory.Exists(dir))
            {
                dir = @"./";
            }
            string[] filesPath = Directory.GetFiles(dir, "*.*");
            _fileCollection.AddPaths(filesPath);
            PreviewControl.ReplaceContent(filesPath[0]);
        }