public override void SetupContextMenu() { #region ctx menu //create the context menu Library.Code.V3.ContextMenuData ctx = new Library.Code.V3.ContextMenuData(); Library.Code.V3.ThumbnailCommand viewFirstCmd = new Library.Code.V3.ThumbnailCommand(this); //if (this.SubContentItemTemplate == "twoRowPoster") viewFirstCmd.Description = "View List";//hard for now-we default to two row //else // viewFirstCmd.Description = "View Small"; viewFirstCmd.Invoked += new EventHandler(viewCmd_Invoked); ctx.SharedItems.Add(viewFirstCmd); Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); viewSettingsCmd.Invoked += new EventHandler(viewSettingsCmd_Invoked); viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSearchCmd = new Library.Code.V3.ThumbnailCommand(this); viewSearchCmd.Invoked += new EventHandler(this.viewSearchCmd_Invoked); viewSearchCmd.Description = "Search"; Library.Code.V3.ThumbnailCommand addFavoritesCmd = new Library.Code.V3.ThumbnailCommand(this); addFavoritesCmd.Invoked += new EventHandler(this.addFavoritesCmd_Invoked); addFavoritesCmd.Description = "Add to Favorites"; ctx.SharedItems.Add(viewSettingsCmd); ctx.SharedItems.Add(viewSearchCmd); ctx.SharedItems.Add(addFavoritesCmd); this.ContextMenu = ctx; #endregion ctx menu }
public override void SetupContextMenu() { #region ctx menu //create the context menu Library.Code.V3.ContextMenuData ctx = new Library.Code.V3.ContextMenuData(); Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); viewSettingsCmd.Invoked += new EventHandler(viewSettingsCmd_Invoked); viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSearchCmd = new Library.Code.V3.ThumbnailCommand(this); viewSearchCmd.Invoked += new EventHandler(this.viewSearchCmd_Invoked); viewSearchCmd.Description = "Search"; Library.Code.V3.ThumbnailCommand addFavoritesCmd = new Library.Code.V3.ThumbnailCommand(this); addFavoritesCmd.Invoked += new EventHandler(this.addFavoritesCmd_Invoked); addFavoritesCmd.Description = "Add to Favorites"; ctx.SharedItems.Add(viewSettingsCmd); ctx.SharedItems.Add(viewSearchCmd); ctx.SharedItems.Add(addFavoritesCmd); this.ContextMenu = ctx; #endregion ctx menu }
private void SetupContextMenu() { #region ctx menu //create the context menu Library.Code.V3.ContextMenuData ctx = new Library.Code.V3.ContextMenuData(); //some ctx items Library.Code.V3.ThumbnailCommand viewFirstCmd = new Library.Code.V3.ThumbnailCommand(this); if (this.ContentItemTemplate == "twoRowGalleryItemPoster") { viewFirstCmd.Description = "View Large"; } else { viewFirstCmd.Description = "View Small"; } viewFirstCmd.Invoked += new EventHandler(viewCmd_Invoked); Library.Code.V3.ThumbnailCommand viewSecondCmd = new Library.Code.V3.ThumbnailCommand(this); viewSecondCmd.Invoked += new EventHandler(viewCmd_Invoked); viewSecondCmd.Description = "View List"; Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); viewSettingsCmd.Invoked += new EventHandler(viewSettingsCmd_Invoked); viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSearchCmd = new Library.Code.V3.ThumbnailCommand(this); viewSearchCmd.Invoked += new EventHandler(this.viewSearchCmd_Invoked); viewSearchCmd.Description = "Search"; ctx.SharedItems.Add(viewFirstCmd); ctx.SharedItems.Add(viewSecondCmd); ctx.SharedItems.Add(viewSettingsCmd); ctx.SharedItems.Add(viewSearchCmd); Library.Code.V3.ThumbnailCommand viewMovieDetailsCmd = new Library.Code.V3.ThumbnailCommand(this); viewMovieDetailsCmd.Description = "Movie Details"; viewMovieDetailsCmd.Invoked += new EventHandler(viewMovieDetailsCmd_Invoked); Library.Code.V3.ThumbnailCommand viewPlayCmd = new Library.Code.V3.ThumbnailCommand(this); viewPlayCmd.Description = "Play"; viewPlayCmd.Invoked += new EventHandler(viewPlayCmd_Invoked); //Library.Code.V3.ThumbnailCommand viewDeleteCmd = new Library.Code.V3.ThumbnailCommand(this); //viewDeleteCmd.Description = "Delete"; ctx.UniqueItems.Add(viewMovieDetailsCmd); ctx.UniqueItems.Add(viewPlayCmd); //ctx.UniqueItems.Add(viewDeleteCmd); //Command CommandContextPopOverlay = new Command(); //properties.Add("CommandContextPopOverlay", CommandContextPopOverlay); //properties.Add("MenuData", ctx); this.ContextMenu = ctx; #endregion ctx menu }
private void SetupContextMenu() { #region ctx menu //create the context menu Library.Code.V3.ContextMenuData ctx = new Library.Code.V3.ContextMenuData(); //some ctx items Library.Code.V3.ThumbnailCommand viewFirstCmd = new Library.Code.V3.ThumbnailCommand(this); //if (this.SubContentItemTemplate == "twoRowPoster") viewFirstCmd.Description = "View Large";//hard for now-we default to two row //else // viewFirstCmd.Description = "View Small"; viewFirstCmd.Invoked += new EventHandler(viewCmd_Invoked); Library.Code.V3.ThumbnailCommand viewSecondCmd = new Library.Code.V3.ThumbnailCommand(this); viewSecondCmd.Invoked += new EventHandler(viewCmd_Invoked); viewSecondCmd.Description = "View List"; Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); viewSettingsCmd.Invoked += new EventHandler(viewSettingsCmd_Invoked); viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSearchCmd = new Library.Code.V3.ThumbnailCommand(this); viewSearchCmd.Invoked += new EventHandler(this.viewSearchCmd_Invoked); viewSearchCmd.Description = "Search"; ctx.SharedItems.Add(viewFirstCmd); ctx.SharedItems.Add(viewSecondCmd); ctx.SharedItems.Add(viewSettingsCmd); ctx.SharedItems.Add(viewSearchCmd); Library.Code.V3.ThumbnailCommand viewMovieDetailsCmd = new Library.Code.V3.ThumbnailCommand(this); viewMovieDetailsCmd.Description = "Movie Details"; viewMovieDetailsCmd.Invoked += new EventHandler(viewMovieDetailsCmd_Invoked); Library.Code.V3.ThumbnailCommand viewPlayCmd = new Library.Code.V3.ThumbnailCommand(this); viewPlayCmd.Description = "Play"; viewPlayCmd.Invoked += new EventHandler(viewPlayCmd_Invoked); //Library.Code.V3.ThumbnailCommand viewDeleteCmd = new Library.Code.V3.ThumbnailCommand(this); //viewDeleteCmd.Description = "Delete"; ctx.UniqueItems.Add(viewMovieDetailsCmd); ctx.UniqueItems.Add(viewPlayCmd); //ctx.UniqueItems.Add(viewDeleteCmd); //Command CommandContextPopOverlay = new Command(); //properties.Add("CommandContextPopOverlay", CommandContextPopOverlay); //properties.Add("MenuData", ctx); this.ContextMenu = ctx; #endregion ctx menu }
private void SetupContextMenu() { #region ctx menu //create the context menu Library.Code.V3.ContextMenuData ctx = new Library.Code.V3.ContextMenuData(); //some ctx items //Library.Code.V3.ThumbnailCommand viewFirstCmd = new Library.Code.V3.ThumbnailCommand(this); //viewFirstCmd.Description = "Some Desc Holder"; ////viewFirstCmd.Invoked += new EventHandler(viewCmd_Invoked); //Library.Code.V3.ThumbnailCommand viewSecondCmd = new Library.Code.V3.ThumbnailCommand(this); ////viewSecondCmd.Invoked += new EventHandler(viewCmd_Invoked); //viewSecondCmd.Description = "View List"; //Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); ////viewSettingsCmd.Invoked += new EventHandler(this.settingsCmd_Invoked); //viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSettingsCmd = new Library.Code.V3.ThumbnailCommand(this); viewSettingsCmd.Invoked += new EventHandler(viewSettingsCmd_Invoked); viewSettingsCmd.Description = "Settings"; Library.Code.V3.ThumbnailCommand viewSearchCmd = new Library.Code.V3.ThumbnailCommand(this); viewSearchCmd.Invoked += new EventHandler(this.viewSearchCmd_Invoked); viewSearchCmd.Description = "Search"; ctx.SharedItems.Add(viewSettingsCmd); ctx.SharedItems.Add(viewSearchCmd); //ctx.SharedItems.Add(viewFirstCmd); //ctx.SharedItems.Add(viewSecondCmd); //ctx.SharedItems.Add(viewSettingsCmd); //Library.Code.V3.ThumbnailCommand viewMovieDetailsCmd = new Library.Code.V3.ThumbnailCommand(this); //viewMovieDetailsCmd.Description = "Movie Details"; //Library.Code.V3.ThumbnailCommand viewPlayCmd = new Library.Code.V3.ThumbnailCommand(this); //viewPlayCmd.Description = "Play"; //Library.Code.V3.ThumbnailCommand viewDeleteCmd = new Library.Code.V3.ThumbnailCommand(this); //viewDeleteCmd.Description = "Delete"; //ctx.UniqueItems.Add(viewMovieDetailsCmd); //ctx.UniqueItems.Add(viewPlayCmd); //ctx.UniqueItems.Add(viewDeleteCmd); //Command CommandContextPopOverlay = new Command(); //properties.Add("CommandContextPopOverlay", CommandContextPopOverlay); //properties.Add("MenuData", ctx); this.ContextMenu = ctx; #endregion ctx menu }