public FullScreenPlayer(Node current, Player ucPlayer, MediaElement parent, TimeSpan now)
        {
            InitializeComponent();

            //if (!File.Exists(current.Filelocation))
            //{
            //    MessageBox.Show("文件不存在!!");
            //}
            //else
            //{
            //    VideoUtil.encode(current.Filelocation);
            //}
            this.parent = parent;
            this.current = current;
            this.ucPlayer = ucPlayer;
            player.Width = SystemParameters.VirtualScreenWidth;
            player.Height = SystemParameters.VirtualScreenHeight - 45;

            //wpfMediaPlayer.URL = current.Filelocation;

            //player.Play();

            DispatcherTimer timer = new DispatcherTimer();
            timer.Interval = TimeSpan.FromSeconds(1);
            timer.Tick += timer_Tick;
            timer.Start();

            player.Source = new Uri(current.Filelocation, UriKind.Relative);
            player.Position = now;
            player.Play();
        }
Esempio n. 2
0
        public VideoService(
            Rectangle viewFinder,
            MediaElement player
            )
        {
            // Initial State
            _State = PlayState.Paused;
            _CanRecord = false;

            _Record = new SwitchableCommand(OnRecord);
            _Play = new SwitchableCommand(OnPlay);
            _Stop = new SwitchableCommand(OnPause);

            _ViewFinder = viewFinder;

            _Player = player;
            _Player.MediaEnded += MediaEnded;

            _CaptureSource = new CaptureSource();
            _CaptureSource.CaptureFailed += CaptureFailed;

            _FileSink = new FileSink();
            _Brush = new VideoBrush();

            _HasRecording = new BehaviorSubject<bool>(false);
        }
Esempio n. 3
0
        public WpfMediaPlayer(MediaElement mediaElement)
        {
            if (mediaElement == null)
                throw new ArgumentNullException("mediaElement");

            this.mediaElement = mediaElement;
        }
Esempio n. 4
0
 public TV_Control(MediaElement mE)
 {
   Messenger.Default.Register<int>(this, "EPGRequest_ChannelChange", EPG_Request);
   delayChannelChangeTimer = new System.Timers.Timer(1000);
   delayChannelChangeTimer.Elapsed += new ElapsedEventHandler(DelayedChannelChange);
   this.mediaElement1 = mE;
 }
Esempio n. 5
0
 public MouseSound(string uri)
 {
     media = new MediaElement();
     media.AutoPlay = false;
     media.Source = new Uri(uri, UriKind.Relative);
     MainPage.Instance.LayoutRoot.Children.Add(media);
 }
Esempio n. 6
0
        public TitleScreenPage(Window win, MediaElement bgMusic)
        {
            main = win;
            music = bgMusic;

            InitializeComponent();
        }
        protected override FrameworkElement CreateContentsElement()
        {
            var me = new MediaElement();
            if (AdSource.IsScalable)
            {
                if (AdSource.MaintainAspectRatio)
                {
                    me.Stretch = Stretch.Uniform;
                }
                else
                {
                    me.Stretch = Stretch.Fill;
                }
            }
            else
            {
                me.Stretch = Stretch.None;
            }

            me.CacheMode = new BitmapCache();
            me.AutoPlay = false;
            me.MediaFailed += new EventHandler<ExceptionRoutedEventArgs>(OnAdPlayerMediaFailed);
            me.MediaEnded += new RoutedEventHandler(OnAdPlayerMediaEnded);
            me.MediaOpened += new RoutedEventHandler(OnAdPlayerMediaOpened);
            me.CurrentStateChanged += new RoutedEventHandler(OnAdPlayerCurrentStateChanged);

            return me;
        }
 public VideoJigsawRectPiece(MediaElement mediaElement, int col, int row, double pieceSize)
     : base(mediaElement, col, row, pieceSize)
 {
     this._origin = new Point((col * pieceSize), (double)(row * pieceSize));
     this.Position = new Point((col * pieceSize), (double)(row * pieceSize));
     base.InitShapeProperties();
 }
Esempio n. 9
0
        public MediaFile(string path, DateTime startDate, DateTime endDate)
        {
            if (path == String.Empty)
            {
                throw new System.InvalidOperationException("Please enter a url for your media.");
            }
            else if (startDate == null || endDate == null)
            {
                throw new System.InvalidOperationException("Please enter a start and end date.");
            }

                this.url = path;
                this.fileName = path.Split('\\').Last();
                this.fileExt = fileName.Split('.').Last();
                this.fileName = fileName.Split('.').First();
                this.typeID = MediaFileUtilities.getFileTypeID(this.fileExt);
                this.fileType = MediaFileUtilities.getFileType(this.fileExt);
                MediaElement thisMediaFile = new MediaElement();
                thisMediaFile.Source = new Uri(path);
                this.width = (int)thisMediaFile.Width;
                this.height = (int)thisMediaFile.Height;
                this.dateStart = startDate;
                this.dateEnd = endDate;

            this.insertQuery = "INSERT INTO Media([url],[filename],[file_extension],[type_id],[width],[height],[date_start],[date_end])"
                    + "VALUES ('" + url + "','" + fileName + "','" + fileExt + "','" + typeID + "','" + width + "','"
                    + height + "','" + dateStart + "','" + dateEnd + "');";
        }
Esempio n. 10
0
 private void GameRepository_MediaElementAdded(MediaElement me)
 {
     if (!visualSoundsContainer.Children.Contains(me))
     {
         visualSoundsContainer.Children.Add(me);
     }
 }
Esempio n. 11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MyMediaElement = ((System.Windows.Controls.MediaElement)(target));
     return;
     case 2:
     
     #line 16 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.play);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 93 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Primitives.ToggleButton)(target)).Click += new System.Windows.RoutedEventHandler(this.play);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 12
0
        /// <summary>
        /// Constructor for the Application object.
        /// </summary>
        public App()
        {
            // Global handler for uncaught exceptions.
            UnhandledException += Application_UnhandledException;

            // Standard Silverlight initialization
            InitializeComponent();

            // Phone-specific initialization
            InitializePhoneApplication();

            // Show graphics profiling information while debugging.
            if (System.Diagnostics.Debugger.IsAttached)
            {
                // Display the current frame rate counters.
                Application.Current.Host.Settings.EnableFrameRateCounter = true;

                // Show the areas of the app that are being redrawn in each frame.
                //Application.Current.Host.Settings.EnableRedrawRegions = true;

                // Enable non-production analysis visualization mode,
                // which shows areas of a page that are handed off to GPU with a colored overlay.
                //Application.Current.Host.Settings.EnableCacheVisualization = true;

                // Disable the application idle detection by setting the UserIdleDetectionMode property of the
                // application's PhoneApplicationService object to Disabled.
                // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run
                // and consume battery power when the user is not using the phone.
                PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;
            }

            // Find the AlarmSound resource and store it
            alarmSound = (MediaElement)this.Resources["AlarmSound"];
        }
Esempio n. 13
0
        public ServiceItem()
        {
            VideoPlayer = new MediaElement();
            AudioPlayer = new MediaPlayer();

            //string loopFilter = "";

            //// specific filters to prevent announcement loops from being included in song loops
            //loopFilter = "background*.mp*";

            //FileInfo[] padsDi = new DirectoryInfo(Properties.Resources.PadPath).GetFiles("*.mp3");
            //FileInfo[] loopsDi = new DirectoryInfo(Properties.Resources.LoopPath).GetFiles(loopFilter);

            //Pads = new List<string>();

            //Pads.Add("");

            //foreach (FileInfo pad in padsDi)
            //    Pads.Add(System.IO.Path.GetFileNameWithoutExtension(pad.Name));

            //Loops = new List<string>();

            //Loops.Add("");

            //foreach (FileInfo loop in loopsDi)
            //    Loops.Add(System.IO.Path.GetFileNameWithoutExtension(loop.Name.Remove(0, loopFilter.Length - 4)));
        }
 public void PlayVideo(string path)
 {
     MediaElement player = new MediaElement();
     player.Source = new Uri(path);
     player.AutoPlay = true;
     player.Play();
 }
Esempio n. 15
0
 private Player()
 {
     _player = new MediaElement();
     _player.LoadedBehavior = MediaState.Manual;
     _player.UnloadedBehavior = MediaState.Manual;
     _player.ScriptCommand += new EventHandler<MediaScriptCommandRoutedEventArgs>(RaiseSongChanged);
 }
Esempio n. 16
0
		public static Duration GetDuration(string fileName)
			{
			Duration naturalDuration = Duration.Automatic;
			Window w = new Window
				{
				Content = _videoElement = new MediaElement() { IsMuted = true },
				IsHitTestVisible = false,
				Width = 0,
				Height = 0,
				WindowStyle = WindowStyle.None,
				ShowInTaskbar = false,
				ShowActivated = false
				};
			_videoElement.MediaOpened += (sender, args) =>
				{
				naturalDuration = _videoElement.NaturalDuration;
				_videoElement.Close();
				w.Close();
				};
			_videoElement.LoadedBehavior = MediaState.Manual;
			_videoElement.UnloadedBehavior = MediaState.Manual;
			_videoElement.Source = new Uri(fileName);
			_videoElement.Play();
			w.ShowDialog();
			return naturalDuration;
			}
Esempio n. 17
0
        public Task SetSourceAsync(IMediaStreamSource source)
        {
            return Dispatch(() =>
            {
                source.ValidateEvent(MediaStreamFsm.MediaEvent.MediaStreamSourceAssigned);

                var wasSet = Interlocked.Exchange(ref _sourceIsSet, 1);

                Debug.Assert(0 == wasSet);

                if (null != _mediaElement)
                {
                    UiThreadCleanup();

                    var mediaElement = _mediaElement;
                    _mediaElement = null;

                    _destroyMediaElement(mediaElement);
                }

                _mediaElement = _createMediaElement();

                if (null != _mediaElement)
                    _mediaElement.SetSource((MediaStreamSource)source);
                else
                    Debug.WriteLine("MediaElementManager.SetSourceAsync() null media element");
            });
        }
Esempio n. 18
0
        public void wyswietl_liste_filmow(MediaElement me)
        {
            int i;

            etykieta:
            for (i = cwiczenie_index; i < 7; i++)
            {
                if (cwiczenie_status[i] == true)
                {
                    cwiczenie_index = i;
                    break;
                }
            }
            if (i == 7)
            {
                cwiczenie_index = 0;
                goto etykieta;
            }

            FILM f = new FILM();
            f.wlacz_film(me, ID_filmu[cwiczenie_index]);

            powtorzenie_index--;
            if (powtorzenie_index == 0)
            {
                powtorzenie_index = liczba_powtorzen_cwiczenia;
                cwiczenie_index++;
            }
        }
Esempio n. 19
0
 public Picture(RegionOptions options) : base(options.Width, options.Height, options.Top, options.Left)
 {
     this._filePath = options.Uri;
     if (!File.Exists(this._filePath))
     {
         Trace.WriteLine(new LogMessage("Image - Dispose", "Cannot Create image object. Invalid Filepath."), LogType.Error.ToString());
     }
     else
     {
         try
         {
             this._pictureBox = new MediaElement();
             this._pictureBox.Stretch = Stretch.Fill;
             Uri uriSource = new Uri(this._filePath.Replace(@"\", "/"), UriKind.Relative);
             this._pictureBox.Source = uriSource;
             base.MediaCanvas.Background = new ImageBrush(new BitmapImage(uriSource));
             base.SnapShot = uriSource;
             this._pictureBox.Width = base.Width;
             this._pictureBox.Height = base.Height;
             this._pictureBox.HorizontalAlignment = HorizontalAlignment.Center;
             this._pictureBox.VerticalAlignment = VerticalAlignment.Center;
             this._pictureBox.Margin = new Thickness(0.0, 0.0, 0.0, 0.0);
             this._pictureBox.Loaded += new RoutedEventHandler(this.PictureBoxLoaded);
             base.MediaCanvas.Children.Add(this._pictureBox);
             base.HasOnLoaded = true;
         }
         catch (Exception exception)
         {
             Trace.WriteLine(new LogMessage("Picture", string.Format("Cannot create Image Object with exception: {0}", exception.Message)), LogType.Error.ToString());
         }
     }
 }
Esempio n. 20
0
        public VIMMediaControl(IVIMContainer parent)
        {
            _parent = parent;
            if (_singleMediaElement.Parent != null)
                ((Grid) _singleMediaElement.Parent).Children.Remove(_singleMediaElement);
            _mediaElement = _singleMediaElement;

            Children.Add(_mediaElement);
            _mediaElement.MediaEnded += VIMMediaControl_MediaEnded;
            _mediaElement.MediaOpened += _mediaElement_MediaOpened;

            _progress = new ProgressBar
                            {
                                Height = 12,
                                VerticalAlignment = VerticalAlignment.Bottom,
                                Background = Brushes.Transparent,
                                Value = 0,
                                Visibility = Visibility.Hidden,
                                Margin = new Thickness(0, 0, 0, 10)
                            };

            var brush = Brushes.DarkGreen.Clone();
            brush.Opacity = 0.5;
            _progress.Foreground = brush;
            Children.Add(_progress);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="DoublePlayer" /> class.
        /// </summary>
        /// <param name="player1">The player1.</param>
        /// <param name="progress1">The progress1.</param>
        /// <param name="remaining1">The remaining1.</param>
        /// <param name="p2">The p2.</param>
        /// <param name="progress2">The progress2.</param>
        /// <param name="remaining2">The remaining2.</param>
        public DoublePlayer(MediaElement player1, ProgressBar progress1, TextBlock remaining1, MediaElement p2, ProgressBar progress2, TextBlock remaining2)
        {
            _player1 = player1;
            _player1.MediaOpened += _player1_MediaOpened;
            _player1.LoadedBehavior = MediaState.Manual;
            _player1.UnloadedBehavior = MediaState.Stop;
            _player1.MediaEnded += _player1_MediaEnded;
            _progress1 = progress1;
            _remaining1 = remaining1;
            _player2 = p2;
            _player2.MediaOpened += _player2_MediaOpened;
            _player2.LoadedBehavior = MediaState.Manual;
            _player2.UnloadedBehavior = MediaState.Stop;
            _player2.MediaEnded += _player2_MediaEnded;
            _progress2 = progress2;
            _remaining2 = remaining2;

            // set the update timer for the progress bars
            _timerPlayer1.Interval = TimeSpan.FromMilliseconds(1000);
            _timerPlayer1.Tick += new EventHandler(TriggerUIRefresh);
            _timerPlayer1.Start();

            Active = _player1;
            InActive = _player2;
        }
        public enemyMissile(double left, double top)
        {
            // use this to create the missile on the fly.
            // calling function is going to supply the
            // X Y Coordinate to create at.
            // set up a rectangle
            // fill in the values - background, picture,
            StackPanel panel = new StackPanel();
            Rectangle missileRect = new Rectangle();
            missileRect.Height = 3;
            missileRect.Width = 12;
            missileRect.Fill = new SolidColorBrush(Colors.Black );
            missileRect.Stroke = new SolidColorBrush(Colors.Yellow);
            missileRect.RadiusX = 1;
            missileRect.RadiusY = 1;
            panel.Children.Add(missileRect);

            MediaElement me = new MediaElement();
            me.Source = new Uri("/laser.mp3", UriKind.Relative);
            panel.Children.Add(me);

            this.Content = panel;
            Canvas.SetTop(this, top);
            Canvas.SetLeft(this, left);
            me.Play();
        }
Esempio n. 23
0
        public void DrawDialog(DialogGroup dialogControl)
        {
            this.CurrentDialog = dialogControl;

            Grid container = (Grid)LogicalTreeHelper.FindLogicalNode(WindowController.Get<MainWindow>(), "grid_View");

            Game.Instance.Player.Location.BlurBackground();

            this.Dialog = null;
            container.Children.RemoveRange(1, container.Children.Count);

            MediaElement pb = new MediaElement();
            if (this.CurrentDialog.Current().Image != null)
            {
                pb.Stretch = System.Windows.Media.Stretch.Uniform;
                pb.Name = "pb_Action";
                pb.StretchDirection = StretchDirection.Both;
                pb.Source = new Uri(this.CurrentDialog.Current().Image);
                pb.VerticalAlignment = VerticalAlignment.Center;
                pb.HorizontalAlignment = HorizontalAlignment.Center;
                container.Children.Add(pb);
            }
            
            container.PreviewMouseRightButtonUp += ToggleDialog;

            this.CurrentDialog.Current().PrepareBeginEffects(container);

            this.AddDialogControl();

            this.CurrentDialog.Current().StartBeginEffects();
        }
Esempio n. 24
0
        public MAGICZNE_ZAKLECIE utworz_magiczne_zaklecie(MediaElement m1, MediaElement m2, Canvas c1, Label l1)
        {
            MAGICZNE_ZAKLECIE magia = new MAGICZNE_ZAKLECIE();
            magia.wybierz_zaklecie(m1,m2,c1,l1);

            return magia;
        }
Esempio n. 25
0
        public Courses(SurfaceWindow1 parentWindow)
            : base(parentWindow)
        {
            InitializeComponent();
            DataContext = this;

            accordian_fx = new MediaElement();
            accordian_fx.LoadedBehavior = MediaState.Manual;
            accordian_fx.UnloadedBehavior = MediaState.Manual;
            accordian_fx.LoadedBehavior = MediaState.Manual;
            accordian_fx.Volume = 1.0;
            accordian_fx.IsMuted = false;

            Cse_items.Add(new DataItem("Description", new Controls.FlowDocControl("Resources/docs/specialisations/cse_info.xaml")));
            Cse_items.Add(new DataItem("Careers", new Controls.FlowDocControl("Resources/docs/specialisations/cse_careers.xaml")));
            Cse_items.Add(new DataItem("Courses", new Controls.CoursesControl("cse")));
            Cse_items.Add(new DataItem("Programme Advisor", new Controls.FlowDocControl("Resources/docs/specialisations/cse_advisor.xaml")));

            Se_items.Add(new DataItem("Description", new Controls.FlowDocControl("Resources/docs/specialisations/se_info.xaml")));
            Se_items.Add(new DataItem("Careers", new Controls.FlowDocControl("Resources/docs/specialisations/se_careers.xaml")));
            Se_items.Add(new DataItem("Courses", new Controls.CoursesControl("se")));
            Se_items.Add(new DataItem("Programme Advisor", new Controls.FlowDocControl("Resources/docs/specialisations/se_advisor.xaml")));

            Eee_items.Add(new DataItem("Description", new Controls.FlowDocControl("Resources/docs/specialisations/eee_info.xaml")));
            Eee_items.Add(new DataItem("Careers", new Controls.FlowDocControl("Resources/docs/specialisations/eee_careers.xaml")));
            Eee_items.Add(new DataItem("Courses", new Controls.CoursesControl("eee")));
            Eee_items.Add(new DataItem("Programme Advisor", new Controls.FlowDocControl("Resources/docs/specialisations/eee_advisor.xaml")));

            setControl(new Controls.FlowDocControl("Resources/docs/tap_course.xaml"));
        }
Esempio n. 26
0
        public TestPAge()
        {
            InitializeComponent();
            mediaElement1.Stop();
            AudioStream = this.mediaElement1;
            /*var _Timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(33) };
            _Timer.Tick += (s, arg) =>
            {
                FrameworkDispatcher.Update();

            };
            _Timer.Start();
            */

            stream = (RTPAudioStream)Datastore.Find("stream");
            localEp = (IPEndPoint)Datastore.Find("localEp");
            remote = (IPEndPoint)Datastore.Find("remoteEp");
            Datastore.Remove("stream");
            Datastore.Remove("localEp");
            Datastore.Remove("remoteEp");

            //FindMyIP();
            //InitializeStream();
            //StartCall();
        }
    protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.Frame> e)
    {
      base.OnElementChanged(e);
      if (Element == null)
        return;

      player = new MediaElement();
      player.AutoPlay = true;
      player.MediaOpened += (sender, args) =>
      {

        timer.Start();

      };
      this.Control.Child = player;

      timer = new DispatcherTimer { Interval = new TimeSpan(0, 0, 1) };
      timer.Tick += timer_Tick;

      if (string.IsNullOrWhiteSpace(Player.Url))
        return;

      InitPlayer();
      
    }
        public override void OnApplyTemplate()
        {
            if (this.mediaElement != null)
            {
                this.mediaElement.Loaded -= this.Media_Loaded;
                this.mediaElement.MediaEnded -= this.MediaElement_MediaEnded;
            }

            if (this.playPauseButton != null)
            {
                this.playPauseButton.HoverClick -= this.PlayPauseButton_HoverClick;
            }

            base.OnApplyTemplate();

            this.mediaElement = this.Template.FindName(Media, this) as MediaElement;
            this.playPauseButton = this.Template.FindName(PlayPauseButton, this) as HoverDwellButton;

            if (this.mediaElement != null)
            {
                this.mediaElement.Loaded += this.Media_Loaded;
                this.mediaElement.MediaEnded += this.MediaElement_MediaEnded;
            }

            if (this.playPauseButton != null)
            {
                this.playPauseButton.HoverClick += this.PlayPauseButton_HoverClick;
            }
        }
Esempio n. 29
0
        public void init(List<MediaElement> mediaElements)
        {
            intro = mediaElements[0];
            death = mediaElements[1];
            eat_ghost = mediaElements[2];
            extra_life = mediaElements[3];
            eat_dot = mediaElements[4];
            eat_fruit = mediaElements[5];
            background = mediaElements[6];
            alarm = mediaElements[7];
            power = mediaElements[8];


            intro.MediaEnded += new RoutedEventHandler(Intro_Ended);
            death.MediaEnded += new RoutedEventHandler(Death_Ended);
            alarm.MediaEnded += new RoutedEventHandler(Alarm_Ended);
            background.MediaEnded += new RoutedEventHandler(Background_Ended);
            eat_dot.MediaEnded += new RoutedEventHandler(EatDot_Ended);
            power.MediaEnded += new RoutedEventHandler(Power_Ended);

            isAlarmPlaying = false;
            isBackgroundPlaying = false;
            isEatDotPlaying = false;
            isPowerPlaying = false;

            /*     intro.Source = new Uri(@"..\..\Sounds\pacman_song1.wav", UriKind.Relative);
                 death.Source = new Uri(@"..\..\Sounds\pacman_death.wav", UriKind.Relative);
                 eat_ghost.Source = new Uri(@"..\..\Sounds\pacman_getghost.wav", UriKind.Relative);
                 extra_life.Source = new Uri(@"..\..\Sounds\pacman_extralife.wav", UriKind.Relative);
                 eat_dot.Source = new Uri(@"..\..\Sounds\pacman_coinin.wav", UriKind.Relative);
                 eatfruit.Source = new Uri(@"..\..\Sounds\pacman_eatfruit.wav", UriKind.Relative);
                 background.Source = new Uri(@"..\..\Sounds\pacman_background1.wav", UriKind.Relative);
                 alarm.Source = new Uri(@"..\..\Sounds\pacman_alarm1.wav", UriKind.Relative);*/
        }
Esempio n. 30
0
 public override void Initialize()
 {
     _mediaPlayer = (MediaElement)VisualTreeHelper.GetChild((DependencyObject)Application.Current.MainWindow.Content, 0);
     _mediaPlayer.UpdateLayout();
     _mediaPlayer.MediaEnded += MediaPlayerOnMediaEnded;
     _mediaPlayer.MediaFailed += MediaPlayerOnMediaFailed;
     _mediaPlayer.MediaOpened += MediaPlayerOnMediaOpened;
 }
Esempio n. 31
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Rayzit;component/Pages/Attachments/VideoRecorder.xaml", System.UriKind.Relative));
     this.LayoutRoot            = ((System.Windows.Controls.Canvas)(this.FindName("LayoutRoot")));
     this.ViewfinderRectangle   = ((System.Windows.Shapes.Rectangle)(this.FindName("ViewfinderRectangle")));
     this.VideoPlayer           = ((System.Windows.Controls.MediaElement)(this.FindName("VideoPlayer")));
     this.txtDebug              = ((System.Windows.Controls.TextBlock)(this.FindName("txtDebug")));
     this.PhoneAppBar           = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("PhoneAppBar")));
     this.StartRecording        = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StartRecording")));
     this.StopPlaybackRecording = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StopPlaybackRecording")));
     this.StartPlayback         = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("StartPlayback")));
     this.SavePlayback          = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("SavePlayback")));
 }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/mario2;component/Resources/PivotPage1.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.MUSICA       = ((System.Windows.Controls.MediaElement)(this.FindName("MUSICA")));
     this.btnimagem    = ((System.Windows.Media.ImageBrush)(this.FindName("btnimagem")));
     this.btnimgpeach  = ((System.Windows.Media.ImageBrush)(this.FindName("btnimgpeach")));
     this.btnbowser    = ((System.Windows.Controls.Button)(this.FindName("btnbowser")));
     this.btnvish      = ((System.Windows.Media.ImageBrush)(this.FindName("btnvish")));
     this.___peacName_ = ((System.Windows.Controls.Button)(this.FindName("___peacName_")));
     this.btnpea       = ((System.Windows.Media.ImageBrush)(this.FindName("btnpea")));
     this.nomeapp      = ((System.Windows.Controls.TextBlock)(this.FindName("nomeapp")));
 }
Esempio n. 33
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/VideoRSSViewer;component/VideoPlayer.xaml", System.UriKind.Relative));
     this.LayoutRoot          = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.backgroundRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("backgroundRectangle")));
     this.myME = ((System.Windows.Controls.MediaElement)(this.FindName("myME")));
     this.myPlayPauseButton         = ((VideoRSSViewer.PlayPauseButton)(this.FindName("myPlayPauseButton")));
     this.myProgressBar             = ((VideoRSSViewer.ProgressBar)(this.FindName("myProgressBar")));
     this.myFullScreenButton        = ((VideoRSSViewer.FullScreenButton)(this.FindName("myFullScreenButton")));
     this.myWindowFrame             = ((VideoRSSViewer.WindowFrame)(this.FindName("myWindowFrame")));
     this.bufferingEllipse          = ((System.Windows.Shapes.Ellipse)(this.FindName("bufferingEllipse")));
     this.bufferingEllipseAnimation = ((System.Windows.Media.Animation.Storyboard)(this.FindName("bufferingEllipseAnimation")));
 }
Esempio n. 34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.REVO = ((Revo.MainWindow)(target));

            #line 6 "..\..\MainWindow.xaml"
                this.REVO.Loaded += new System.Windows.RoutedEventHandler(this.REVO_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.gridPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.btnLedRojo = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.btnLedVerde = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 5:
                this.btnLedAmarillo = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 6:
                this.btnLedAzul = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 7:
                this.mediaMusic = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 8:
                this.videoDuran = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.process = ((JPTLaserMarkWPF.ControlView.Processing)(target));

            #line 4 "..\..\..\ControlView\Processing.xaml"
                this.process.Loaded += new System.Windows.RoutedEventHandler(this.process_Loaded);

            #line default
            #line hidden

            #line 4 "..\..\..\ControlView\Processing.xaml"
                this.process.Closing += new System.ComponentModel.CancelEventHandler(this.process_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.processWin = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.statusView = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.mediaEnded = ((System.Windows.Controls.MediaElement)(target));

            #line 16 "..\..\..\ControlView\Processing.xaml"
                this.mediaEnded.MediaEnded += new System.Windows.RoutedEventHandler(this.mediaEnded_MediaEnded_1);

            #line default
            #line hidden
                return;

            case 5:
                this.pb = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LecteurVideo = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 2:
                this.lblStatus = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.btnPlay = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.BtnPlay_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPause = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.btnPause.Click += new System.Windows.RoutedEventHandler(this.BtnPause_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.btnStop = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.btnStop.Click += new System.Windows.RoutedEventHandler(this.BtnStop_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ResultsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 2:
                this.SourceMediaElement = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 3:
                this.SplashScreenImage = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.VideoTimeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 6:

            #line 84 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenFile_OnClick);

            #line default
            #line hidden
                return;

            case 7:

            #line 86 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 38
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Jeu = ((BodyMove.Jeu)(target));
                return;

            case 2:
                this.musique = ((System.Windows.Controls.MediaElement)(target));

#line 10 "..\..\Jeu.xaml"
                this.musique.MediaEnded += new System.Windows.RoutedEventHandler(this.musique_MediaEnded);

#line default
#line hidden
                return;

            case 3:
                this.ImageCameraPrincipale = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.CanvasCameraPrincipale = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.imgPose = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.ImageCameraVignette = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.CanvasCameraVignette = ((System.Windows.Controls.Canvas)(target));
                return;

            case 8:
                this.ChronoLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myOptions = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 2:
                this.labelText = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.btnPlay = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.ClickPlay);

            #line default
            #line hidden
                return;

            case 4:
                this.btnPause = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.btnPause.Click += new System.Windows.RoutedEventHandler(this.ClickPause);

            #line default
            #line hidden
                return;

            case 5:
                this.btnStop = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.btnStop.Click += new System.Windows.RoutedEventHandler(this.ClickStop);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.me_miVideo = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 2:
                this.lb_tiempo = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.bt_play = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\MainWindow.xaml"
                this.bt_play.Click += new System.Windows.RoutedEventHandler(this.bt_play_Click_1);

            #line default
            #line hidden
                return;

            case 4:
                this.bt_pause = ((System.Windows.Controls.Button)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.bt_pause.Click += new System.Windows.RoutedEventHandler(this.bt_pause_Click_1);

            #line default
            #line hidden
                return;

            case 5:
                this.bt_stop = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.bt_stop.Click += new System.Windows.RoutedEventHandler(this.bt_stop_Click_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid = ((MonaFramework.Controls.MonaGrid)(target));
                return;

            case 2:
                this.player = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 3:
                this.play = ((MonaFramework.Controls.MonaButton)(target));

            #line 18 "..\..\..\MainWindow.xaml"
                this.play.Click += new System.Windows.RoutedEventHandler(this.playMedia);

            #line default
            #line hidden
                return;

            case 4:
                this.pause = ((MonaFramework.Controls.MonaButton)(target));

            #line 19 "..\..\..\MainWindow.xaml"
                this.pause.Click += new System.Windows.RoutedEventHandler(this.pauseMedia);

            #line default
            #line hidden
                return;

            case 5:
                this.stop = ((MonaFramework.Controls.MonaButton)(target));

            #line 20 "..\..\..\MainWindow.xaml"
                this.stop.Click += new System.Windows.RoutedEventHandler(this.stopMedia);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\VideoScreen.xaml"
                ((PS4_PS2_Classics_Gui__WPF_.VideoScreen)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MediaPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.video = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 2:

            #line 41 "..\..\Video.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdPlay_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 120 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnMediaButtonClick);

            #line default
            #line hidden
                return;

            case 2:
                this.media1 = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\MainWindow.xaml"
                ((WPF_动态图片当背景.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ele = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 46
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/BookMemory;component/BarcordScanPage.xaml", System.UriKind.Relative));
     this.LayoutRoot       = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel       = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle        = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.ContentPanel     = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.PreviewRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("PreviewRectangle")));
     this.PreviewBrush     = ((System.Windows.Media.VideoBrush)(this.FindName("PreviewBrush")));
     this.image1           = ((System.Windows.Controls.Image)(this.FindName("image1")));
     this.TextBlock_Result = ((System.Windows.Controls.TextBlock)(this.FindName("TextBlock_Result")));
     this.mediaElement1    = ((System.Windows.Controls.MediaElement)(this.FindName("mediaElement1")));
 }
Esempio n. 47
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/GPSAlarmSL;component/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot   = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel   = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.mainMap      = ((Microsoft.Phone.Maps.Controls.Map)(this.FindName("mainMap")));
     this.musicOff     = ((System.Windows.Controls.Button)(this.FindName("musicOff")));
     this.ZoomIn       = ((System.Windows.Controls.Button)(this.FindName("ZoomIn")));
     this.ZoomOut      = ((System.Windows.Controls.Button)(this.FindName("ZoomOut")));
     this.MyPosition   = ((System.Windows.Controls.Button)(this.FindName("MyPosition")));
     this.SearchButton = ((System.Windows.Controls.Button)(this.FindName("SearchButton")));
     this.alarm        = ((System.Windows.Controls.MediaElement)(this.FindName("alarm")));
 }
Esempio n. 48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 18 "..\..\MainPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonNewGame_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 19 "..\..\MainPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonHighscores_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 20 "..\..\MainPage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonExit_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));

            #line 23 "..\..\MainPage.xaml"
                this.mediaElement.MediaEnded += new System.Windows.RoutedEventHandler(this.mediaElement_MediaEnded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainWindow.xaml"
                ((ChilledWindows.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 3:
                this.bg = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.firstBg = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.twoGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.bg2 = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.bg3 = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AvPath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:

            #line 11 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.PlayButton = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.PlayButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.StopButton = ((System.Windows.Controls.Button)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.StopButton.Click += new System.Windows.RoutedEventHandler(this.StopButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.MediaPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/iTVOD_WindowPhone7;component/Video_Detail_Player.xaml", System.UriKind.Relative));
     this.LayoutRoot         = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel         = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.lblVideoTitle      = ((System.Windows.Controls.TextBlock)(this.FindName("lblVideoTitle")));
     this.pBar               = ((System.Windows.Controls.ProgressBar)(this.FindName("pBar")));
     this.imgVideo           = ((System.Windows.Controls.Image)(this.FindName("imgVideo")));
     this.lblEnglishTitle    = ((System.Windows.Controls.TextBlock)(this.FindName("lblEnglishTitle")));
     this.lblVietnameseTitle = ((System.Windows.Controls.TextBlock)(this.FindName("lblVietnameseTitle")));
     this.lblSoLuotXem       = ((System.Windows.Controls.TextBlock)(this.FindName("lblSoLuotXem")));
     this.mediaPlayer        = ((System.Windows.Controls.MediaElement)(this.FindName("mediaPlayer")));
     this.btnViewVideo       = ((System.Windows.Controls.Button)(this.FindName("btnViewVideo")));
 }
Esempio n. 52
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.STG = ((System.Windows.Controls.Grid)(target));

            #line 11 "..\..\ShowTitle.xaml"
                this.STG.Loaded += new System.Windows.RoutedEventHandler(this.STG_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 15 "..\..\ShowTitle.xaml"
                ((System.Windows.Media.Animation.Storyboard)(target)).Completed += new System.EventHandler(this.Storyboard_Completed);

            #line default
            #line hidden
                return;

            case 3:
                this.me = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 4:
                this.TL = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.SKIPb = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\ShowTitle.xaml"
                this.SKIPb.Click += new System.Windows.RoutedEventHandler(this.SKIPb_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\..\page\relax\relaxmain.xaml"
                ((XjHealth.page.relax.relaxmain)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.webBrowser1 = ((System.Windows.Forms.WebBrowser)(target));
                return;

            case 3:
                this.btn_backmain = ((XjHealth.lib.ImageButton)(target));
                return;

            case 4:
                this.videoplayer = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 5:
                this.playlist = ((System.Windows.Controls.MediaElement)(target));

            #line 33 "..\..\..\..\page\relax\relaxmain.xaml"
                this.playlist.MediaEnded += new System.Windows.RoutedEventHandler(this.player_MediaEnded);

            #line default
            #line hidden

            #line 33 "..\..\..\..\page\relax\relaxmain.xaml"
                this.playlist.Loaded += new System.Windows.RoutedEventHandler(this.myMediaElement_Loaded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\MainWindow.xaml"
                ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);

            #line default
            #line hidden

            #line 7 "..\..\MainWindow.xaml"
                ((Microsoft.Samples.Kinect.BodyBasics.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 3:
                this.navMainMenu = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.navMainMenu.Click += new System.Windows.RoutedEventHandler(this.navMainMenu_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\VideoLayout.xaml"
                ((BlendWpfApplication1.VideoLayout)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.element = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.MainImage = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.PlayButton = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\..\MainWindow.xaml"
                this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.PlayButton);

            #line default
            #line hidden
                return;

            case 4:
                this.On_Off = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 5:
                this.OnOff = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.OnOff.Click += new System.Windows.RoutedEventHandler(this.OnOffImage_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.MusicPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnbgm = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\ctrlMusic.xaml"
                this.btnbgm.Click += new System.Windows.RoutedEventHandler(this.Btnbgm_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.imgbgm = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.btnbgmStop = ((System.Windows.Controls.Button)(target));

            #line 19 "..\..\ctrlMusic.xaml"
                this.btnbgmStop.Click += new System.Windows.RoutedEventHandler(this.BtnbgmStop_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.sound1 = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 5:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 6:
                this.txtboxVolume = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VideoCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.VideoControl = ((System.Windows.Controls.MediaElement)(target));

            #line 11 "..\..\VideoIntroScreen.xaml"
                this.VideoControl.MediaEnded += new System.Windows.RoutedEventHandler(this.VideoControl_MediaEnded);

            #line default
            #line hidden
                return;

            case 3:
                this.skipBtn = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\VideoIntroScreen.xaml"
                this.skipBtn.Click += new System.Windows.RoutedEventHandler(this.skipBtn_Click);

            #line default
            #line hidden

            #line 12 "..\..\VideoIntroScreen.xaml"
                this.skipBtn.MouseEnter += new System.Windows.Input.MouseEventHandler(this.skipBtn_MouseEnter);

            #line default
            #line hidden

            #line 12 "..\..\VideoIntroScreen.xaml"
                this.skipBtn.MouseLeave += new System.Windows.Input.MouseEventHandler(this.skipBtn_MouseLeave);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gridMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.rectClip = ((System.Windows.Media.RectangleGeometry)(target));
                return;

            case 3:
                this.canvasImageOne = ((System.Windows.Controls.Canvas)(target));
                return;

            case 4:
                this.stImageSlideshow1 = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 5:
                this.imgOne = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.canvasImageTwo = ((System.Windows.Controls.Canvas)(target));
                return;

            case 7:
                this.stImageSlideshow2 = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 8:
                this.imgTwo = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.mediaPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tbChooseDirectory = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.btnBrowseDirectory = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\AddPhotoWindow.xaml"
                this.btnBrowseDirectory.Click += new System.Windows.RoutedEventHandler(this.BtnBrowseDirectory_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.tbPhotoTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.tbPhotoDescription = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.btnAddPhoto = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\AddPhotoWindow.xaml"
                this.btnAddPhoto.Click += new System.Windows.RoutedEventHandler(this.BtnAddPhoto_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.mediaElPhotoChose = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }