public HologramDisplay2(Hologram2 holo) { hologram2 = holo; InitializeComponent(); Path PathInstance = new Path(); PathInstance.PathId = holo.video; this.DataContext = PathInstance; myMediaElement1.LoadedBehavior = MediaState.Manual; myMediaElement2.LoadedBehavior = MediaState.Manual; myMediaElement3.LoadedBehavior = MediaState.Manual; myMediaElement4.LoadedBehavior = MediaState.Manual; myMediaElement1.MediaEnded += new RoutedEventHandler(myMediaElement1_MediaEnded); myMediaElement2.MediaEnded += new RoutedEventHandler(myMediaElement2_MediaEnded); myMediaElement3.MediaEnded += new RoutedEventHandler(myMediaElement3_MediaEnded); myMediaElement4.MediaEnded += new RoutedEventHandler(myMediaElement4_MediaEnded); myMediaElement1.MediaOpened += new RoutedEventHandler(myMediaElement1_MediaOpened); myMediaElement1.Play(); myMediaElement2.Play(); myMediaElement3.Play(); myMediaElement4.Play(); state = "play"; }
public Render(int size, string video, bool check, Driver driv) { this.driver = driv; driver.mode = 1; holo2 = new Hologram2(video, size, check); }