コード例 #1
0
ファイル: Video.cs プロジェクト: kim-g/Web-Camera-Video
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Video));
     this.axWindowsMediaPlayer1 = new AxWMPLib.AxWindowsMediaPlayer();
     ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).BeginInit();
     this.SuspendLayout();
     //
     // axWindowsMediaPlayer1
     //
     this.axWindowsMediaPlayer1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.axWindowsMediaPlayer1.Enabled       = true;
     this.axWindowsMediaPlayer1.Location      = new System.Drawing.Point(0, 0);
     this.axWindowsMediaPlayer1.Name          = "axWindowsMediaPlayer1";
     this.axWindowsMediaPlayer1.OcxState      = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));
     this.axWindowsMediaPlayer1.Size          = new System.Drawing.Size(711, 437);
     this.axWindowsMediaPlayer1.TabIndex      = 0;
     this.axWindowsMediaPlayer1.StatusChange += new System.EventHandler(this.axWindowsMediaPlayer1_StatusChange);
     //
     // Video
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.White;
     this.ClientSize          = new System.Drawing.Size(711, 437);
     this.Controls.Add(this.axWindowsMediaPlayer1);
     this.Name = "Video";
     this.Text = "Video";
     ((System.ComponentModel.ISupportInitialize)(this.axWindowsMediaPlayer1)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: tomfeigin/KasataTV
        private void ax1_Enter(object sender, EventArgs e)
        {
            AxWindowsMediaPlayer ax = (AxWindowsMediaPlayer)sender;

            String fileName = System.IO.Path.GetFileName(ax.URL);
            String boxName  = ax.Tag.ToString();

            box1.Visible = false;
            box2.Visible = false;
            box3.Visible = false;

            switch (boxName)
            {
            case "box1":
                box1.Visible = true;
                break;

            case "box2":
                box2.Visible = true;
                break;

            case "box3":
                box3.Visible = true;
                break;

            default:
                break;
            }

            caspar_.Channels[0].LoadBG(new CasparItem(fileName));
            caspar_.Channels[0].Play();
        }
コード例 #3
0
ファイル: MediaFrm.cs プロジェクト: cxfwolfkings/EIM
        public MediaFrm()
        {
            InitializeComponent();

            player = new AxWindowsMediaPlayer();
            this.pnBody.Controls.Add(player);
        }
コード例 #4
0
 public void SetMedia()
 {
     media = MyResources.Main.PlayingTab.GetMediaPlayer();
     Timer_RaseTime.Start();
     ProgressBar_Volume.Value = media.settings.volume;
     Timer_Loop.Enabled       = true;
 }
コード例 #5
0
 public API_WindowsMediaPlayer setup()
 {
     MediaPlayer = new AxWindowsMediaPlayer();
     MediaPlayer.fill();
     this.add_Control(MediaPlayer);
     return(this);
 }
コード例 #6
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmVideo));

            this.axWindowsMediaPlayer1 = new AxWindowsMediaPlayer();
            this.axWindowsMediaPlayer1.BeginInit();
            this.SuspendLayout();
            this.axWindowsMediaPlayer1.Dock     = DockStyle.Fill;
            this.axWindowsMediaPlayer1.Enabled  = true;
            this.axWindowsMediaPlayer1.Location = new Point(0, 0);
            this.axWindowsMediaPlayer1.Name     = "axWindowsMediaPlayer1";
            this.axWindowsMediaPlayer1.OcxState = (AxHost.State)componentResourceManager.GetObject("axWindowsMediaPlayer1.OcxState");
            this.axWindowsMediaPlayer1.Size     = new Size(1099, 597);
            this.axWindowsMediaPlayer1.TabIndex = 0;
            this.AutoScaleDimensions            = new SizeF(6f, 13f);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize    = new Size(1099, 597);
            this.Controls.Add((Control)this.axWindowsMediaPlayer1);
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.Icon            = (Icon)componentResourceManager.GetObject("$this.Icon");
            this.Name            = nameof(frmVideo);
            this.StartPosition   = FormStartPosition.CenterScreen;
            this.Text            = "Video Player";
            this.FormClosing    += new FormClosingEventHandler(this.frmVideo_FormClosing);
            this.axWindowsMediaPlayer1.EndInit();
            this.ResumeLayout(false);
        }
コード例 #7
0
        private void PlayWaittimer(ListBox source, AxWindowsMediaPlayer Cast, string action, string Args)
        {
            if (Cast == BGM_Player)
            {
                //Convert.ToInt32(Cast.currentMedia.duration * 1000 - Cast.Ctlcontrols.currentPosition - (fadetime+51) * (100 - BGM_volume_bef_play)
                BGMorigfadetime = fadetime;
                if (Convert.ToInt32(Cast.currentMedia.duration * 1000 / 2) - Cast.Ctlcontrols.currentPosition < (fadetime + 51) * (100 - BGM_volume_bef_play))
                {
                    MessageBox.Show("");
                    fadetime = Convert.ToInt32((Cast.currentMedia.duration * 1000 - Cast.Ctlcontrols.currentPosition) / 2 / (100 - BGM_volume_bef_play) - 51);
                }
            }
            else
            {
                Musicorigfadetime = fadetime;
                if (Convert.ToInt32(Cast.currentMedia.duration * 1000 / 2) < fadetime * (100 - Music_volume_bef_play))
                {
                    fadetime = Convert.ToInt32(Cast.currentMedia.duration * 1000 / 2);
                }
            }

            if (Single_Player_Mode.Checked)
            {
                StopAnotherPlayer(Cast);
            }

            if (source.SelectedIndex == source.Items.Count - 1 && Args.Contains("replay"))
            {
                source.SelectedIndex = 0;
            }
            else if (source.SelectedIndex != source.Items.Count - 1)
            {
                source.SelectedIndex = source.SelectedIndex + 1;
            }
        }
コード例 #8
0
ファイル: WindowsMediaPlayer.cs プロジェクト: Oxigen2/Oxigen
 public WindowsMediaPlayer(bool muteSound, int videoVolume, Logger logger)
 {
     _control     = new AxWindowsMediaPlayer();
     _logger      = logger;
     _muteSound   = muteSound;
     _videoVolume = videoVolume;
 }
コード例 #9
0
ファイル: frm_tv.cs プロジェクト: CiudadFutura/Turnera-Mision
        private frm_tv()
        {
            mediaPath = Directory.GetCurrentDirectory() + "\\media";
            if (!Directory.Exists(mediaPath))
            {
                Directory.CreateDirectory(mediaPath);
            }
            InitializeComponent();

            System.Windows.Forms.DataGridViewCellStyle dgsS = new System.Windows.Forms.DataGridViewCellStyle();
            dgsS.Font               = new System.Drawing.Font("Microsoft Sans Serif", 32F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dgsS.Alignment          = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dgsS.BackColor          = System.Drawing.Color.White;
            dgsS.ForeColor          = System.Drawing.Color.Red;
            dgsS.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dgsS.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dgsS.WrapMode           = System.Windows.Forms.DataGridViewTriState.True;
            this.dgv_turnos.ColumnHeadersDefaultCellStyle = dgsS;
            this.dgv_turnos.DefaultCellStyle = dgsS;
            this.dgv_turnos.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;

            this.FormBorderStyle = FormBorderStyle.None;
            myWmp = (AxWindowsMediaPlayer)splitContainer1.Panel2.Controls["wmp"];
            myWmp.enableContextMenu = false;
            myWmp.Ctlenabled        = false;
            myWmp.stretchToFit      = true;
            myWmp.uiMode            = "none"; // "invisible" "none" "mini" "full"
            myWmp.settings.mute     = true;
            dgv_turnos.Enabled      = false;
            dgv_turnos.RowsDefaultCellStyle.SelectionBackColor = System.Drawing.Color.White;
            dgv_turnos.RowsDefaultCellStyle.SelectionForeColor = System.Drawing.Color.Red;
            refreshGrid();
        }
コード例 #10
0
ファイル: Playlist.cs プロジェクト: Yukinii/VOTC-Legacy
        internal Playlist()
        {
            try
            {
                if (MediaPlayer != null)
                {
                    return;
                }
                var host = new WindowsFormsHost();
                MediaPlayer = new AxWindowsMediaPlayer();
                host.Child  = MediaPlayer;
                MediaPlayer.CreateControl();
                IContainer playComponents = new Container();
                CheckSong                    = new Timer(playComponents);
                CheckSong.Tick              += CheckSong_Tick;
                CheckSong.Interval           = 500;
                MediaPlayer.PlayStateChange += MediaPlayer_PlayStateChange;
                Play();
            }
            catch
            {
                MessageBox.Show(@"
Windows Media Player has to be installed in order for VOTC to work
I'll show you how to install it, please install it asap. VOTC might be really unstable in this state.", @"FAIL");
                Process.Start("http://www.wikihow.com/Reinstall-Windows-Media-Player");
            }
        }
コード例 #11
0
 public static void Play(this AxWindowsMediaPlayer player, string filePath)
 {
     Util.LogSuccess("Playing video: " + filePath);
     player.URL = filePath;
     player.Ctlcontrols.stop();
     player.Ctlcontrols.play();
 }
コード例 #12
0
ファイル: MultimediaScroll.cs プロジェクト: tombogle/saymore
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds a control for the specified audio or video file.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        private void AddAudioVideoFile(string file, bool isVideoFile)
        {
            var pt = new Point(0, _topOfNextCtrl);
            var sz = new Size(_pnl.ClientSize.Width, isVideoFile ?
                              Settings.Default.DefaultHeightOfVideoControl :
                              Settings.Default.DefaultHeightOfAudioControl);

#if !MONO
            var wmp = new AxWindowsMediaPlayer();
            ((ISupportInitialize)(wmp)).BeginInit();
            //wmp.OcxState = (AxHost.State)Resources.wmpOcxState;
            wmp.Size     = sz;
            wmp.Location = pt;
            wmp.Anchor  |= AnchorStyles.Right;
            wmp.Name     = Path.GetFileName(file);
            wmp.Tag      = file;
            _pnl.Controls.Add(wmp);

            ((ISupportInitialize)(wmp)).EndInit();
            wmp.settings.autoStart = false;
            wmp.URL = file;

            wmp.PlayStateChange += wmp_PlayStateChange;
            //m_pauseVideoImmediately=true;
            //wmp.Ctlcontrols.play();
            //this is ignored if we do it now, so we instead do it when the playstatechange event fires.  wmp.Ctlcontrols.pause();
#endif
            _topOfNextCtrl += wmp.Height + Settings.Default.GapBetweenMultimediaObjects;
        }
コード例 #13
0
        public override void Dispose()
        {
            GUIWindowManager.OnNewAction -= GUIWindowManager_OnNewAction;

            if (!bufferCompleted)
            {
                GUIWaitCursor.Hide();
            }

            try { if (osd != null)
                  {
                      osd.Dispose(); osd = null;
                  }
            }
            catch (Exception ex) { Log.Instance.Warn(ex.ToString()); }

            try { if (wmpCtrl != null)
                  {
                      wmpCtrl.Dispose(); wmpCtrl = null;
                  }
            }
            catch (Exception ex) { Log.Instance.Warn(ex.ToString()); }

            GC.Collect();
            GC.WaitForPendingFinalizers();
        }
コード例 #14
0
        public override bool Play(string strFile)
        {
            Log.Instance.Info("WMPVideoPlayer.Play '{0}'", strFile);

            currentFile = strFile;

            wmpCtrl = new AxWindowsMediaPlayer();
            GUIGraphicsContext.form.Controls.Add(wmpCtrl);
            wmpCtrl.Enabled           = false;
            wmpCtrl.uiMode            = "none";
            wmpCtrl.windowlessVideo   = true;
            wmpCtrl.enableContextMenu = false;
            wmpCtrl.Ctlenabled        = false;
            wmpCtrl.Visible           = false;
            wmpCtrl.stretchToFit      = true;

            wmpCtrl.PlayStateChange += WMP_OnPlayStateChange;
            wmpCtrl.Buffering       += WMP_OnBuffering;
            wmpCtrl.ErrorEvent      += WMP_OnError;

            wmpCtrl.URL = strFile;
            wmpCtrl.network.bufferingTime = PluginConfiguration.Instance.wmpbuffer;
            wmpCtrl.Ctlcontrols.play();

            GUIPropertyManager.SetProperty("#TV.Record.percent3", 0.0f.ToString()); // set to 0, as this player doesn't support download progress reporting

            GUIWindowManager.OnNewAction += GUIWindowManager_OnNewAction;

            GUIWaitCursor.Init(); GUIWaitCursor.Show(); // init and show the wait cursor while buffering
            return(true);
        }
コード例 #15
0
        public void PlayMedia(Media media, AxWindowsMediaPlayer player, Label nameLabel, Label artistLabel, Button playB, System.Drawing.Image img)
        {
            //play media
            // Media file = (Media)MediaGrid.SelectedRows[0].HeaderCell.Value;
            string fname = media.GetFileName();

            player.URL = fname;
            player.Ctlcontrols.play();
            player.windowlessVideo = false;
            player.uiMode          = "none";
            nameLabel.Show();
            artistLabel.Show();
            nameLabel.Text = media.GetMetadata().GetName();
            string artist = media.GetMetadata().GetArtist();

            if (artist == null)
            {
                artist = media.GetMetadata().GetCreator();
            }

            artistLabel.Text = artist;
            media.Viewed();

            playB.Image = img;
        }
コード例 #16
0
 void setupPlayList(AxWindowsMediaPlayer p)
 {
     mediaList.Rows.Clear();
     for (int i = 0; i < p.currentPlaylist.count; i++)
     {
         mediaList.Rows.Add(p.currentPlaylist.Item[i].name);
     }
 }
コード例 #17
0
ファイル: MainForm.cs プロジェクト: wdevnic/MediaPlayer
        // _WMPOCXEvents_PlayStateChangeEvent
        private void MediaPlayer_PlayStateChange(object sender, _WMPOCXEvents_PlayStateChangeEvent e)
        {
            AxWindowsMediaPlayer t = sender as AxWindowsMediaPlayer;

            if ((MediaPlayer.currentMedia != null) && (t.playState != WMPPlayState.wmppsTransitioning) && (t.playState != WMPPlayState.wmppsReady)) // checks that current media is valid and ensures that media is not transitioning before it switches to next item
            {
                playlistListBox.SelectedIndex = int.Parse(MediaPlayer.currentMedia.getItemInfo("PlaylistIndex"));                                   // ensures that correct listbox item is selected when next song starts
            }
        }
コード例 #18
0
 public AudioPlayer()
 {
     InitializeComponent();
     MediaPlayer = new AxWindowsMediaPlayer();
     playList    = new List <string>();
     MediaPlayer.BeginInit();
     this.Controls.Add(MediaPlayer);
     MediaPlayer.EndInit();
 }
コード例 #19
0
 /// <summary>
 /// Create the media player
 /// </summary>
 private void CreateMediaPlayer()
 {
     if (mediaPlayer == null)
     {
         mediaPlayer = new AxWindowsMediaPlayer();
         mediaPlayer.CreateControl();
         mediaPlayer.Visible = false;
     }
 }
コード例 #20
0
 public VideoControllerLogic(AxWindowsMediaPlayer videoPlayer)
 {
     this.VideoPlayer = videoPlayer;
     SkipMoments      = new List <SignificantMoment>();
     Timer            = new Timer();
     Timer.Tick      += TimerTick;
     Timer.Interval   = 137;
     Timer.Start();
 }
コード例 #21
0
        public RenamePlaylist(Form1 form, DataSet1 dataset, AxWindowsMediaPlayer mp)
        {
            InitializeComponent();

            this.otherForm = form;
            this.dataset   = dataset;
            manager        = new PlayListManager(dataset);
            this.mp        = mp;
        }
コード例 #22
0
 public QueuingMachine()
 {
     InitializeComponent();
     if (mediaPlayer == null)
     {
         mediaPlayer = new AxWindowsMediaPlayer();
         mediaPlayer.CreateControl();
         mediaPlayer.Visible = false;
     }
 }
コード例 #23
0
 public Form1()
 {
     InitializeComponent();
     songs = new ArrayList();
     currentSongPointer = -1;
     player             = new AxWindowsMediaPlayer(); //initializing the player that will play our music
     player.CreateControl();                          //allows us to control the player, like setting the URL
     cmdControl = new CommandInvoker();
     slot       = 0;                                  //slot to be used when setting commands
 }
コード例 #24
0
ファイル: Form1.cs プロジェクト: cxfwolfkings/EIM
        public Form1()
        {
            InitializeComponent();

            player = new AxWindowsMediaPlayer();

            panel = new Panel();
            panel.Controls.Add(player);
            this.Controls.Add(panel);
        }
コード例 #25
0
 public MediaPlayer(AxWMPLib.AxWindowsMediaPlayer wmpTune, AxWMPLib.AxWindowsMediaPlayer wmpMotif, PlayList playlist)
 {
     this.wmpTune  = wmpTune;
     this.wmpMotif = wmpMotif;
     this.wmpTune.PlayStateChange += wmpTune_PlayStateChange;
     this.playlist = playlist;
     this.synchronizationContext = SynchronizationContext.Current;
     this.currentTime            = 0;
     this.abort = false;
 }
コード例 #26
0
ファイル: Form1.cs プロジェクト: tomfeigin/KasataTV
 private void setMediaPlayer(AxWindowsMediaPlayer ax, String mediaLocation, String fileName)
 {
     this.Invoke((MethodInvoker) delegate
     {
         ax.URL           = mediaLocation + "\\" + fileName;
         ax.settings.mute = true;
         ax.settings.setMode("loop", true);
         ax.Ctlcontrols.play();
     });
 }
コード例 #27
0
        private static void CreateInstance()
        {
            // disable auto windows mediaplayer auto cd-play
            if (_wmp10Player != null)
            {
                return;
            }
            try
            {
                UInt32 dwValue = (UInt32)0;
                using (RegistryKey subkey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\MediaPlayer\Preferences", true)
                       )
                {
                    subkey.SetValue("CDAutoPlay", (Int32)dwValue);

                    // enable metadata lookup for CD's
                    dwValue  = (UInt32)Convert.ToInt32(subkey.GetValue("MetadataRetrieval"));
                    dwValue |= 1;
                    subkey.SetValue("MetadataRetrieval", (Int32)dwValue);
                }
            }
            catch (Exception) {}

            _wmp10Player = new AxWindowsMediaPlayer();


            _wmp10Player.BeginInit();
            GUIGraphicsContext.form.SuspendLayout();
            _wmp10Player.Enabled = true;

            ComponentResourceManager resources = new ComponentResourceManager(typeof(Resource1));

            _wmp10Player.Location = new Point(8, 16);
            _wmp10Player.Name     = "axWindowsMediaPlayer1";
            _wmp10Player.OcxState = ((AxHost.State)(resources.GetObject("axWindowsMediaPlayer1.OcxState")));
            _wmp10Player.Size     = new Size(264, 240);
            _wmp10Player.TabIndex = 0;

            GUIGraphicsContext.form.Controls.Add(_wmp10Player);

            try
            {
                _wmp10Player.EndInit();
            }
            catch (COMException) {}

            _wmp10Player.uiMode          = "none";
            _wmp10Player.windowlessVideo = true;

            _wmp10Player.enableContextMenu = false;
            _wmp10Player.Ctlenabled        = false;
            _wmp10Player.ClientSize        = new Size(0, 0);
            _wmp10Player.Visible           = false;
            GUIGraphicsContext.form.ResumeLayout(false);
        }
コード例 #28
0
        string[] paths;                                        //пути к выбранным файлам

        public frmMain()
        {
            InitializeComponent();
            wmp = axWindowsMediaPlayer;
            //фильтры для окна выбора плейлиста
            openFileDialog.Multiselect = true;
            openFileDialog.Filter      = "MP3 Files|*.mp3|WAV Files|*.wav|All Supported|*.aac,*.mp4,*.m4v,*.mp4v,*.wma,*.amr";
            //автовоспроизведение следующего трека
            wmp.settings.autoStart = true;
            paths = new string[0];
        }
コード例 #29
0
 public static AxWindowsMediaPlayer add_WindowsMediaPlayers <T>(this T control)
     where T : Control
 {
     return((AxWindowsMediaPlayer)control.invokeOnThread(
                () => {
         var mediaPlayer = new AxWindowsMediaPlayer();
         mediaPlayer.fill();
         control.add_Control(mediaPlayer);
         return mediaPlayer;
     }));
 }
コード例 #30
0
        public fMedia()
        {
            // MEDIA
            m_media                  = new AxWindowsMediaPlayer();
            m_media.Name             = "m_media";
            m_media.Dock             = DockStyle.Fill;
            m_media.Enabled          = true;
            m_media.PlayStateChange += new _WMPOCXEvents_PlayStateChangeEventHandler(this.f_media_event_PlayStateChange);
            this.Controls.Add(m_media);

            this.Shown += f_media_Shown;
        }
コード例 #31
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JukeBox));
     this.timerStartSong = new System.Windows.Forms.Timer(this.components);
     this.timerUpdateDisplay = new System.Windows.Forms.Timer(this.components);
     this.timerLoadLibrary = new System.Windows.Forms.Timer(this.components);
     this.panelAll = new System.Windows.Forms.Panel();
     this.lblImportStatus = new System.Windows.Forms.Label();
     this.trackListControl = new JukeBoxControls.TrackListControl();
     this.stringListControl = new JukeBoxControls.StringListControl();
     this.Player = new AxMicrosoft.MediaPlayer.Interop.AxWindowsMediaPlayer();
     this.lblCriteria = new System.Windows.Forms.Label();
     this.lblSearchTrack = new System.Windows.Forms.Label();
     this.lblSearchAlbum = new System.Windows.Forms.Label();
     this.lblSearchArtist = new System.Windows.Forms.Label();
     this.lblNowPlaying = new System.Windows.Forms.Label();
     this.trackControl = new JukeBoxControls.TrackControl();
     this.lblTime = new ComponentScience.ElementsEx.LedLabel();
     this.panelAll.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Player)).BeginInit();
     this.SuspendLayout();
     //
     // timerStartSong
     //
     this.timerStartSong.Tick += new System.EventHandler(this.timerStart_Tick);
     //
     // timerUpdateDisplay
     //
     this.timerUpdateDisplay.Tick += new System.EventHandler(this.timerUpdateDisplay_Tick);
     //
     // timerLoadLibrary
     //
     this.timerLoadLibrary.Interval = 1000;
     this.timerLoadLibrary.Tick += new System.EventHandler(this.timerLoadLibrary_Tick);
     //
     // panelAll
     //
     this.panelAll.Controls.Add(this.lblImportStatus);
     this.panelAll.Controls.Add(this.trackListControl);
     this.panelAll.Controls.Add(this.stringListControl);
     this.panelAll.Controls.Add(this.Player);
     this.panelAll.Controls.Add(this.lblCriteria);
     this.panelAll.Controls.Add(this.lblSearchTrack);
     this.panelAll.Controls.Add(this.lblSearchAlbum);
     this.panelAll.Controls.Add(this.lblSearchArtist);
     this.panelAll.Controls.Add(this.lblNowPlaying);
     this.panelAll.Controls.Add(this.trackControl);
     this.panelAll.Controls.Add(this.lblTime);
     this.panelAll.Location = new System.Drawing.Point(0, 1);
     this.panelAll.Name = "panelAll";
     this.panelAll.Size = new System.Drawing.Size(800, 600);
     this.panelAll.TabIndex = 0;
     //
     // lblImportStatus
     //
     this.lblImportStatus.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblImportStatus.Location = new System.Drawing.Point(23, 95);
     this.lblImportStatus.Name = "lblImportStatus";
     this.lblImportStatus.Size = new System.Drawing.Size(178, 33);
     this.lblImportStatus.TabIndex = 54;
     this.lblImportStatus.Text = "Current Queue";
     this.lblImportStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // trackListControl
     //
     this.trackListControl.Location = new System.Drawing.Point(230, 149);
     this.trackListControl.Name = "trackListControl";
     this.trackListControl.Size = new System.Drawing.Size(567, 434);
     this.trackListControl.TabIndex = 53;
     //
     // stringListControl
     //
     this.stringListControl.Location = new System.Drawing.Point(228, 149);
     this.stringListControl.Name = "stringListControl";
     this.stringListControl.Size = new System.Drawing.Size(569, 434);
     this.stringListControl.TabIndex = 52;
     //
     // Player
     //
     this.Player.Enabled = true;
     this.Player.Location = new System.Drawing.Point(0, 0);
     this.Player.Name = "Player";
     this.Player.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("Player.OcxState")));
     this.Player.Size = new System.Drawing.Size(35, 34);
     this.Player.TabIndex = 51;
     this.Player.Visible = false;
     //
     // lblCriteria
     //
     this.lblCriteria.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblCriteria.Location = new System.Drawing.Point(228, 95);
     this.lblCriteria.Name = "lblCriteria";
     this.lblCriteria.Size = new System.Drawing.Size(569, 51);
     this.lblCriteria.TabIndex = 50;
     this.lblCriteria.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblCriteria.UseMnemonic = false;
     //
     // lblSearchTrack
     //
     this.lblSearchTrack.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchTrack.Location = new System.Drawing.Point(0, 480);
     this.lblSearchTrack.Name = "lblSearchTrack";
     this.lblSearchTrack.Size = new System.Drawing.Size(220, 37);
     this.lblSearchTrack.TabIndex = 49;
     this.lblSearchTrack.Text = "Track Search";
     this.lblSearchTrack.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblSearchAlbum
     //
     this.lblSearchAlbum.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchAlbum.Location = new System.Drawing.Point(0, 369);
     this.lblSearchAlbum.Name = "lblSearchAlbum";
     this.lblSearchAlbum.Size = new System.Drawing.Size(224, 42);
     this.lblSearchAlbum.TabIndex = 48;
     this.lblSearchAlbum.Text = "Album Search";
     this.lblSearchAlbum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblSearchArtist
     //
     this.lblSearchArtist.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchArtist.Location = new System.Drawing.Point(1, 263);
     this.lblSearchArtist.Name = "lblSearchArtist";
     this.lblSearchArtist.Size = new System.Drawing.Size(221, 40);
     this.lblSearchArtist.TabIndex = 47;
     this.lblSearchArtist.Text = "Artist Search";
     this.lblSearchArtist.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblNowPlaying
     //
     this.lblNowPlaying.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblNowPlaying.Location = new System.Drawing.Point(1, 149);
     this.lblNowPlaying.Name = "lblNowPlaying";
     this.lblNowPlaying.Size = new System.Drawing.Size(222, 40);
     this.lblNowPlaying.TabIndex = 46;
     this.lblNowPlaying.Text = "Current Queue";
     this.lblNowPlaying.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // trackControl
     //
     this.trackControl.BackColor = System.Drawing.Color.Black;
     this.trackControl.Location = new System.Drawing.Point(235, 0);
     this.trackControl.Name = "trackControl";
     this.trackControl.Size = new System.Drawing.Size(509, 92);
     this.trackControl.TabIndex = 45;
     this.trackControl.Track = null;
     //
     // lblTime
     //
     this.lblTime.BackColor = System.Drawing.Color.Black;
     this.lblTime.Columns = 5;
     this.lblTime.ForeColor = System.Drawing.Color.GreenYellow;
     this.lblTime.Location = new System.Drawing.Point(46, 11);
     this.lblTime.Name = "lblTime";
     this.lblTime.Segment.Size = 3;
     this.lblTime.Size = new System.Drawing.Size(174, 64);
     this.lblTime.TabIndex = 44;
     this.lblTime.Text = "88:88";
     //
     // JukeBox
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size(949, 641);
     this.ControlBox = false;
     this.Controls.Add(this.panelAll);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.KeyPreview = true;
     this.Name = "JukeBox";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.Text = "JukeBox";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.panelAll.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Player)).EndInit();
     this.ResumeLayout(false);
 }
コード例 #32
0
ファイル: AxInterop.WMPLib.cs プロジェクト: kimykunjun/test
 public AxWindowsMediaPlayerEventMulticaster(AxWindowsMediaPlayer parent)
 {
     this.parent = parent;
 }