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; }
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); }
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")) + @""""); }
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")) + @""""); }
/// <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); }