public MediaScreens() : base() { this.InnerPadding = new Padding(0); this.PlaylistScreen = new PlaylistScreen(); this.PlaylistScreen.Dock = DockStyle.Fill; this.TrackInfoScreen = new TrackInfoScreen(); this.TrackInfoScreen.Dock = DockStyle.Fill; this.SignalAnalysisScreen = new SignalAnalysisScreen(); this.SignalAnalysisScreen.Dock = DockStyle.Fill; this.BookmarkScreen = new BookmarkScreen(); this.BookmarkScreen.Dock = DockStyle.Fill; base.SelectedIndexChanged += new EventHandler(MediaScreens_SelectedIndexChanged); _oldActiveScreen = null; _activeScreen = this.PlaylistScreen; this.HandleCreated += new EventHandler(MediaScreens_HandleCreated); this.HandleDestroyed += new EventHandler(MediaScreens_HandleDestroyed); OnUpdateMediaScreens(); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { PlaylistItem plItem = value as PlaylistItem; IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { BookmarkScreen ctl = new BookmarkScreen(edSvc, plItem); ctl.ShowEmbeddedPlaylist = false; ctl.BorderStyle = BorderStyle.Fixed3D; edSvc.DropDownControl(ctl); } return(plItem); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { PlaylistItem plItem = value as PlaylistItem; IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc != null) { BookmarkScreen ctl = new BookmarkScreen(edSvc, plItem); ctl.ShowEmbeddedPlaylist = false; ctl.BorderStyle = BorderStyle.Fixed3D; edSvc.DropDownControl(ctl); } return plItem; }