Пример #1
0
        public MainWindow()
        {
            InitializeComponent();


            //TODO manual startup
            Model.Instance.Compilation = CompilationFactory.Retrieve(@"C:\Documents and Settings\msuter\My Documents\Replayer\test_corev03.rez");
            //Model.Instance.Player; // mediaReplayer1;
            Model.Instance.Player.Volume   = 50;
            Model.Instance.Player.Position = new TimeSpan(0);

            this.accordion1.ItemsSource = Model.Instance.Compilation.Tracks;
        }
Пример #2
0
        public Window()
        {
            InitializeComponent();

            //IsUiUpdateAllowed = true; //start with allowance

            //TODO manual startup
            Model.Instance.Compilation     = CompilationFactory.Retrieve(@"C:\Documents and Settings\msuter\My Documents\Replayer\test_corev03.rez");
            Model.Instance.Player          = mediaReplayer1;
            Model.Instance.Player.Volume   = 50;
            Model.Instance.Player.Position = new TimeSpan(0);

            this.accordion1.ItemsSource = Model.Instance.Compilation.Tracks;

            Model.Instance.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Model_PropertyChanged);
        }
Пример #3
0
        public void IntegrationTestThat_LoadsAZipCompilationAndConvertsItIntoATiddlyWikiCompilation()
        {
            //load the original compilation
            ICompilation compilation = CompilationFactory.Retrieve(@"Spezial-PB Compilation 2010.zip");

            //convert to target type
            var targetCompilation = CompilationFactory.Convert <TiddlyWikiCompilation>(compilation);

            //save target compilation
            targetCompilation.Store();

            Assert.IsTrue(File.Exists(@"Spezial-PB Compilation 2010.html"));

            //open for visual inspection
            String firefoxPath = @"C:\Documents and Settings\All Users\Desktop\PortableApps\FirefoxPortable\FirefoxPortable.exe";

            Process.Start(firefoxPath, @"file:///" + @"""" + (Path.GetFullPath(@"Spezial-PB Compilation 2010.html")) + @"""");
        }
Пример #4
0
        public void StoreTest_TestsWhetherAnXmlCompilationCanBeStoredAsHtmlCompilation()
        {
            //load the original xml compilation
            ICompilation xmlCompilation = CompilationFactory.Retrieve(@"Spezial-PB Compilation 2010_ModifiedFileNames.xml");

            //convert to html
            HtmlCompilation htmlCompilation = CompilationFactory.Convert <HtmlCompilation>(xmlCompilation);


            //save html compilation
            htmlCompilation.Store();

            Assert.IsTrue(File.Exists(@"Spezial-PB Compilation 2010_ModifiedFileNames.html"));


            //open for visual inspection
            String firefoxPath = @"C:\Documents and Settings\All Users\Desktop\PortableApps\FirefoxPortable\FirefoxPortable.exe";

            Process.Start(firefoxPath, @"file:///" + @"""" + (Path.GetFullPath(@"Spezial-PB Compilation 2010_ModifiedFileNames.html")) + @"""");
        }
Пример #5
0
 /// <summary>
 ///     Handles the DoWork event of the Retriever worker.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">
 ///     The <see cref="System.ComponentModel.DoWorkEventArgs" /> instance containing the event data.
 /// </param>
 private void Retriever_DoWork(object sender, DoWorkEventArgs e)
 {
     Compilation = CompilationFactory.Retrieve(e.Argument as string);
 }