private Theme LoadThemeInDesingMode(ThemeSource themeSource) { ProjectManagement managementInstance = ProjectManagement.GetProjectManagementInstance((IServiceProvider)themeSource.OwnerThemeManager.Site); string activeProjectFullPath = managementInstance.Services.GetActiveProjectFullPath(); if (!themeSource.SettingsAreValid) { return(this.theme); } string configurationPropertyValue = (string)managementInstance.Services.GetProjectConfigurationPropertyValue("OutputPath"); if (string.IsNullOrEmpty(activeProjectFullPath) || string.IsNullOrEmpty(configurationPropertyValue)) { return((Theme)null); } string path1 = Path.Combine(activeProjectFullPath, configurationPropertyValue); string str = (string)null; if (themeSource.StorageType == ThemeStorageType.File) { if (Path.IsPathRooted(themeSource.ThemeLocation)) { return((Theme)null); } string themeLocation = themeSource.ThemeLocation; if (path1 != null && !string.IsNullOrEmpty(themeLocation)) { string path2 = themeLocation.Replace("~\\", "").Replace("~", ""); str = Path.Combine(path1, path2); if (!File.Exists(str)) { themeSource.loadError = "Path not found: " + str; return(this.theme); } } } else if (themeSource.StorageType == ThemeStorageType.Resource) { string themeLocation = themeSource.ThemeLocation; string[] fileNameParts = themeLocation.Split('.'); str = ThemeSource.SearchFile(activeProjectFullPath, fileNameParts); if (str == null) { themeSource.loadError = string.Format("Unable locate Resource file '{0}' in the project folder '{1}'", (object)string.Join(Path.DirectorySeparatorChar.ToString(), themeLocation.Split('.')), (object)activeProjectFullPath); return(this.theme); } } if (str == null) { themeSource.loadError = "Unable to determine active project path."; return(this.theme); } Theme theme = Theme.ReadXML(str); ThemeRepository.Add(theme); return(theme); }
private static void OnStorageTypeChanged(RadObject d, RadPropertyChangedEventArgs e) { ThemeSource themeSource = (ThemeSource)d; if (!themeSource.SettingsAreValid) { return; } themeSource.ReloadThemeFromStorage(); }
/// <summary> /// Regesters theme from a file or resource that contains a xml-serilized Theme object. /// The Visual Style Builder application for example is capable of designing and serializing /// themes. Theme files generally contain Theme with one or several style sheets each assigned a /// registration that defines which RadControl and/or RadElment the style sheet applies. /// </summary> /// <param name="storageType"></param> /// <param name="resourceParams"></param> public static void RegisterThemeFromStorage(ThemeStorageType storageType, ResourceParams resourceParams) { ThemeSource source = new ThemeSource(); Assembly lookUpAssembly = resourceParams.UserAssembly; if (lookUpAssembly == null) { lookUpAssembly = resourceParams.CallingAssembly; } source.SetCallingAssembly(lookUpAssembly); source.StorageType = storageType; source.ThemeLocation = resourceParams.ResourcePath; source.ReloadThemeFromStorage(); }
public static void RegisterThemeFromStorage( ThemeStorageType storageType, ThemeResolutionService.ResourceParams resourceParams) { ThemeSource themeSource = new ThemeSource(); Assembly assembly = resourceParams.UserAssembly; if ((object)assembly == null) { assembly = resourceParams.CallingAssembly; } themeSource.CallingAssembly = assembly; themeSource.StorageType = storageType; themeSource.ThemeLocation = resourceParams.ResourcePath; themeSource.ReloadThemeFromStorage(); }
public static void RegisterThemeFromAssembly(Assembly assembly, string themeName) { string[] manifestResourceNames = assembly.GetManifestResourceNames(); foreach (string currentName in manifestResourceNames) { if (!currentName.Contains(themeName) || !currentName.EndsWith(".xml")) { continue; } ThemeSource source = new ThemeSource(); source.SetCallingAssembly(Assembly.GetCallingAssembly()); source.StorageType = ThemeStorageType.Resource; source.ThemeLocation = currentName; source.ReloadThemeFromStorage(); } }
private static string SearchFile(string baseFolder, string[] fileNameParts) { if (fileNameParts == null || fileNameParts.Length < 2) { return((string)null); } int startIndex = fileNameParts.Length - 2; string str = string.Join(".", fileNameParts, startIndex, 2); do { string path = Path.Combine(baseFolder, str); if (File.Exists(path)) { return(path); } --startIndex; if (startIndex > 0) { str = fileNameParts[startIndex] + (object)Path.DirectorySeparatorChar + str; } }while (startIndex > 0); return(ThemeSource.SearchFileInSubDirectories(baseFolder, str)); }
private bool LoadThemeInDesingMode(ThemeSource themeSource) { ProjectManagement pm = ProjectManagement.GetProjectManagementInstance(themeSource.OwnerThemeManager.Site); string projectFullPath = pm.Services.GetActiveProjectFullPath(); //return true - means no further processing required if (!themeSource.SettingsAreValid) { return(true); } string baseFolder = null; string fileName = null; string outputPath = (string)pm.Services.GetProjectConfigurationPropertyValue("OutputPath"); if (string.IsNullOrEmpty(projectFullPath) || string.IsNullOrEmpty(outputPath)) { return(false); } baseFolder = Path.Combine(projectFullPath, outputPath); string validFilePath = null; if (themeSource.StorageType == ThemeStorageType.File) { if (Path.IsPathRooted(themeSource.ThemeLocation)) { return(false); } fileName = themeSource.ThemeLocation; if (baseFolder != null && !string.IsNullOrEmpty(fileName)) { fileName = fileName.Replace("~\\", ""); fileName = fileName.Replace("~", ""); validFilePath = Path.Combine(baseFolder, fileName); if (!File.Exists(validFilePath)) { themeSource.loadError = "Path not found: " + validFilePath; return(true); } } } else if (themeSource.StorageType == ThemeStorageType.Resource) { string themeLocation = themeSource.ThemeLocation; string[] fileNameParts = themeLocation.Split('.'); validFilePath = SearchFile(projectFullPath, fileNameParts); if (validFilePath == null) { themeSource.loadError = string.Format( "Unable locate Resource file '{0}' in the project folder '{1}'", string.Join(Path.DirectorySeparatorChar.ToString(), themeLocation.Split('.')), projectFullPath ); return(true); } } if (validFilePath == null) { themeSource.loadError = "Unable to determine active project path."; return(true); } using (XmlReader reader = XmlReader.Create(validFilePath)) { this.DeserializePartiallyThemeFromReader(reader, validFilePath); } themeSource.loadSucceeded = true; return(true); }
/// <summary> /// Loads a theme partially from a System.IO.Stream instance. /// </summary> public void LoadPartiallyFromStorage(ThemeSource themeSource) { this.themeSource = themeSource; themeSource.loadSucceeded = false; if (themeSource.OwnerThemeManager != null && themeSource.OwnerThemeManager.IsDesignMode && themeSource.OwnerThemeManager.Site != null) { try { if (LoadThemeInDesingMode(themeSource)) { return; } } catch (Exception e) //catch any COM or other exceptions if not working with VS 2005 { themeSource.loadError = e.ToString(); return; } } if (this.themeSource != null) { this.callingAssembly = this.themeSource.GetInitialCallingAssembly(); } if (this.callingAssembly == null) { callingAssembly = Assembly.GetCallingAssembly(); } if (this.themeSource.StorageType == ThemeStorageType.File) { string themeLoc = this.GetThemeLocation(); try { using (XmlReader reader = XmlReader.Create(themeLoc)) { this.DeserializePartiallyThemeFromReader(reader, themeLoc); } } catch (Exception ex) { string errorMessage = "Error loading theme from file " + themeLoc + ": " + ex.ToString(); Debug.Fail(errorMessage); #if !DEBUG Trace.Write(errorMessage); #endif themeSource.loadError = errorMessage; } } else if (this.themeSource.StorageType == ThemeStorageType.Resource) { try { themeSource.loadError = "Resource not found"; string themeLocation = this.themeSource.ThemeLocation.Trim(); Stream stream = callingAssembly.GetManifestResourceStream(themeLocation); if (stream == null) { stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(themeLocation); } if (stream == null) { Assembly asm = Assembly.GetEntryAssembly(); //there is not any entry assembly in design mode! if (asm != null) { stream = asm.GetManifestResourceStream(themeLocation); } } if (stream != null) { using (stream) { using (XmlReader reader = XmlReader.Create(stream)) { this.DeserializePartiallyThemeFromReader(reader, themeLocation); } } } } catch (Exception ex) { string errorMessage = "Error loading theme from resource " + this.themeSource.ThemeLocation + ": " + ex.ToString(); Debug.Fail(errorMessage); #if !DEBUG Trace.Write(errorMessage); #endif themeSource.loadError = errorMessage; } } themeSource.loadSucceeded = true; themeSource.loadError = string.Empty; callingAssembly = null; }
public int Add(ThemeSource value) { return(this.List.Add((object)value)); }
/// <summary> /// <para>Returns the index of a <see cref='Telerik.WinControls.ThemeSource'/> in /// the <see cref='Telerik.WinControls.ThemeSourceCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='Telerik.WinControls.ThemeSource'/> to locate.</param> /// <returns> /// <para>The index of the <see cref='Telerik.WinControls.ThemeSource'/> of <paramref name='value'/> in the /// <see cref='Telerik.WinControls.ThemeSourceCollection'/>, if found; otherwise, -1.</para> /// </returns> public int IndexOf(ThemeSource value) { return(List.IndexOf(value)); }
/// <summary> /// <para>Gets a value indicating whether the /// <see cref='Telerik.WinControls.ThemeSourceCollection'/> contains the specified <see cref='Telerik.WinControls.ThemeSource'/>.</para> /// </summary> /// <param name='value'>The <see cref='Telerik.WinControls.ThemeSource'/> to locate.</param> /// <returns> /// <para><see langword='true'/> if the <see cref='Telerik.WinControls.ThemeSource'/> is contained in the collection; /// otherwise, <see langword='false'/>.</para> /// </returns> public bool Contains(ThemeSource value) { return(List.Contains(value)); }
/// <summary> /// <para>Adds a <see cref='Telerik.WinControls.ThemeSource'/> with the specified value to the /// <see cref='Telerik.WinControls.ThemeSourceCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='Telerik.WinControls.ThemeSource'/> to add.</param> /// <returns> /// <para>The index at which the new element was inserted.</para> /// </returns> public int Add(ThemeSource value) { return(List.Add(value)); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); Telerik.WinControls.ThemeSource themeSource1 = new Telerik.WinControls.ThemeSource(); Telerik.WinControls.ThemeSource themeSource2 = new Telerik.WinControls.ThemeSource(); this.mainMenu1 = new System.Windows.Forms.MainMenu(this.components); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.lMovieMenu = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItemAddfilter = new System.Windows.Forms.MenuItem(); this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItemGenre = new System.Windows.Forms.MenuItem(); this.menuItemYear = new System.Windows.Forms.MenuItem(); this.menuItemImdb = new System.Windows.Forms.MenuItem(); this.menuItemMpaa = new System.Windows.Forms.MenuItem(); this.menuItemRuntime = new System.Windows.Forms.MenuItem(); this.menuItem22 = new System.Windows.Forms.MenuItem(); this.menuItemMovielist = new System.Windows.Forms.MenuItem(); this.menuItemDescription = new System.Windows.Forms.MenuItem(); this.menuItemMovietitle = new System.Windows.Forms.MenuItem(); this.menuItemPoster = new System.Windows.Forms.MenuItem(); this.menuItemFanart = new System.Windows.Forms.MenuItem(); this.menuItem21 = new System.Windows.Forms.MenuItem(); this.menuItemFilterbutton = new System.Windows.Forms.MenuItem(); this.menuItemTrailerbutton = new System.Windows.Forms.MenuItem(); this.menuItemPlaybutton = new System.Windows.Forms.MenuItem(); this.menuItem26 = new System.Windows.Forms.MenuItem(); this.menuItemFullscreen = new System.Windows.Forms.MenuItem(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.panel1 = new System.Windows.Forms.Panel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.button5 = new System.Windows.Forms.Button(); this.button6 = new System.Windows.Forms.Button(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.listBox1 = new Telerik.WinControls.UI.RadListBox(); this.label9 = new System.Windows.Forms.Label(); this.splitter1 = new System.Windows.Forms.Splitter(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); this.radListBoxItem5 = new Telerik.WinControls.UI.RadListBoxItem(); this.radThemeManager1 = new Telerik.WinControls.RadThemeManager(); this.panel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.listBox1)).BeginInit(); this.SuspendLayout(); // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem1, this.menuItem9, this.menuItem5, this.menuItem10}); // // menuItem1 // this.menuItem1.Index = 0; this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem6, this.lMovieMenu}); this.menuItem1.Text = "&Movie Lists"; // // menuItem6 // this.menuItem6.Index = 0; this.menuItem6.Text = "Add Lists"; this.menuItem6.Click += new System.EventHandler(this.menuItem6_Click); // // lMovieMenu // this.lMovieMenu.Index = 1; this.lMovieMenu.Text = "Load Movies"; this.lMovieMenu.Click += new System.EventHandler(this.lMovieMenu_Click); // // menuItem9 // this.menuItem9.Index = 1; this.menuItem9.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemAddfilter}); this.menuItem9.Text = "&Filters"; // // menuItemAddfilter // this.menuItemAddfilter.Index = 0; this.menuItemAddfilter.Text = "Add Filter"; this.menuItemAddfilter.Click += new System.EventHandler(this.menuItem10_Click); // // menuItem5 // this.menuItem5.Index = 2; this.menuItem5.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemGenre, this.menuItemYear, this.menuItemImdb, this.menuItemMpaa, this.menuItemRuntime, this.menuItem22, this.menuItemMovielist, this.menuItemDescription, this.menuItemMovietitle, this.menuItemPoster, this.menuItemFanart, this.menuItem21, this.menuItemFilterbutton, this.menuItemTrailerbutton, this.menuItemPlaybutton, this.menuItem26, this.menuItemFullscreen}); this.menuItem5.Text = "&Show"; // // menuItemGenre // this.menuItemGenre.Checked = true; this.menuItemGenre.Index = 0; this.menuItemGenre.Text = "Genre"; this.menuItemGenre.Click += new System.EventHandler(this.menuItemGenre_Click); // // menuItemYear // this.menuItemYear.Checked = true; this.menuItemYear.Index = 1; this.menuItemYear.Text = "Year"; this.menuItemYear.Click += new System.EventHandler(this.menuItemYear_Click); // // menuItemImdb // this.menuItemImdb.Checked = true; this.menuItemImdb.Index = 2; this.menuItemImdb.Text = "Imdb Rating"; this.menuItemImdb.Click += new System.EventHandler(this.menuItemImdb_Click); // // menuItemMpaa // this.menuItemMpaa.Checked = true; this.menuItemMpaa.Index = 3; this.menuItemMpaa.Text = "MPAA"; this.menuItemMpaa.Click += new System.EventHandler(this.menuItemMpaa_Click); // // menuItemRuntime // this.menuItemRuntime.Checked = true; this.menuItemRuntime.Index = 4; this.menuItemRuntime.Text = "Run Time"; this.menuItemRuntime.Click += new System.EventHandler(this.menuItemRuntime_Click); // // menuItem22 // this.menuItem22.Checked = true; this.menuItem22.Index = 5; this.menuItem22.Text = "-"; // // menuItemMovielist // this.menuItemMovielist.Checked = true; this.menuItemMovielist.Index = 6; this.menuItemMovielist.Text = "Movie List"; this.menuItemMovielist.Click += new System.EventHandler(this.menuItemMovielist_Click); // // menuItemDescription // this.menuItemDescription.Checked = true; this.menuItemDescription.Index = 7; this.menuItemDescription.Text = "Description"; this.menuItemDescription.Click += new System.EventHandler(this.menuItemDescription_Click); // // menuItemMovietitle // this.menuItemMovietitle.Checked = true; this.menuItemMovietitle.Index = 8; this.menuItemMovietitle.Text = "Movie Title"; this.menuItemMovietitle.Click += new System.EventHandler(this.menuItemMovietitle_Click); // // menuItemPoster // this.menuItemPoster.Checked = true; this.menuItemPoster.Index = 9; this.menuItemPoster.Text = "Poster"; this.menuItemPoster.Click += new System.EventHandler(this.menuItemPoster_Click); // // menuItemFanart // this.menuItemFanart.Checked = true; this.menuItemFanart.Index = 10; this.menuItemFanart.Text = "Fanart"; this.menuItemFanart.Click += new System.EventHandler(this.menuItemFanart_Click); // // menuItem21 // this.menuItem21.Checked = true; this.menuItem21.Index = 11; this.menuItem21.Text = "-"; // // menuItemFilterbutton // this.menuItemFilterbutton.Checked = true; this.menuItemFilterbutton.Index = 12; this.menuItemFilterbutton.Text = "Filter List Button"; // // menuItemTrailerbutton // this.menuItemTrailerbutton.Checked = true; this.menuItemTrailerbutton.Index = 13; this.menuItemTrailerbutton.Text = "Trailer Button"; this.menuItemTrailerbutton.Click += new System.EventHandler(this.menuItemTrailerbutton_Click); // // menuItemPlaybutton // this.menuItemPlaybutton.Checked = true; this.menuItemPlaybutton.Index = 14; this.menuItemPlaybutton.Text = "Play Button"; this.menuItemPlaybutton.Click += new System.EventHandler(this.menuItemPlaybutton_Click); // // menuItem26 // this.menuItem26.Checked = true; this.menuItem26.Index = 15; this.menuItem26.Text = "-"; // // menuItemFullscreen // this.menuItemFullscreen.Checked = true; this.menuItemFullscreen.Index = 16; this.menuItemFullscreen.Text = "Full Screen"; this.menuItemFullscreen.Click += new System.EventHandler(this.menuItemFullscreen_Click_2); // // menuItem10 // this.menuItem10.Index = 3; this.menuItem10.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItem3, this.menuItem4, this.menuItem2}); this.menuItem10.Text = "&Program"; // // menuItem3 // this.menuItem3.Index = 0; this.menuItem3.Text = "Help"; // // menuItem4 // this.menuItem4.Index = 1; this.menuItem4.Text = "About"; this.menuItem4.Click += new System.EventHandler(this.menuItem4_Click); // // menuItem2 // this.menuItem2.Index = 2; this.menuItem2.Text = "Exit"; this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); // // panel1 // this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.panel1.Controls.Add(this.tableLayoutPanel1); this.panel1.Controls.Add(this.splitter1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(792, 508); this.panel1.TabIndex = 0; // // tableLayoutPanel1 // this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanel1.BackColor = System.Drawing.Color.Transparent; this.tableLayoutPanel1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tableLayoutPanel1.BackgroundImage"))); this.tableLayoutPanel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.tableLayoutPanel1.ColumnCount = 20; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5.313812F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 4.287086F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30.92826F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 5.620539F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 6.897242F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 1.605868F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 47F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 67F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 76F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 96F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 18.65864F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 1.658545F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 22.61749F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 2.412533F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 76F)); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 9); this.tableLayoutPanel1.Controls.Add(this.pictureBox1, 15, 2); this.tableLayoutPanel1.Controls.Add(this.listBox1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.label9, 11, 1); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 14; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 3.068731F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.727844F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 5.318823F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40.08499F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.330494F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.330494F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.330494F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 6.336759F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 3.474998F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.864631F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.13427F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 5.977489F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 2.019979F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(789, 508); this.tableLayoutPanel1.TabIndex = 19; // // tableLayoutPanel2 // this.tableLayoutPanel2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.tableLayoutPanel2.ColumnCount = 11; this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanel2, 20); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 1.202044F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 1.068483F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.28803F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 18.43133F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 127F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 17.36285F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 10.66271F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 1.199555F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 13.86152F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 13.82025F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 2.10322F)); this.tableLayoutPanel2.Controls.Add(this.button5, 8, 8); this.tableLayoutPanel2.Controls.Add(this.button6, 9, 8); this.tableLayoutPanel2.Controls.Add(this.label3, 2, 1); this.tableLayoutPanel2.Controls.Add(this.label4, 5, 8); this.tableLayoutPanel2.Controls.Add(this.label5, 6, 8); this.tableLayoutPanel2.Controls.Add(this.label6, 2, 8); this.tableLayoutPanel2.Controls.Add(this.label7, 3, 8); this.tableLayoutPanel2.Controls.Add(this.label13, 4, 8); this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 371); this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 10; this.tableLayoutPanel1.SetRowSpan(this.tableLayoutPanel2, 5); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.15831F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.12559F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.91199F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.91199F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.91199F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.91199F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 6.685027F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 4.861838F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.723677F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 2.797579F)); this.tableLayoutPanel2.Size = new System.Drawing.Size(789, 137); this.tableLayoutPanel2.TabIndex = 31; // // button5 // this.button5.Dock = System.Windows.Forms.DockStyle.Fill; this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button5.Location = new System.Drawing.Point(591, 120); this.button5.Name = "button5"; this.tableLayoutPanel2.SetRowSpan(this.button5, 2); this.button5.Size = new System.Drawing.Size(85, 14); this.button5.TabIndex = 27; this.button5.Text = "Play &Movie"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); // // button6 // this.button6.Dock = System.Windows.Forms.DockStyle.Fill; this.button6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button6.Location = new System.Drawing.Point(682, 120); this.button6.Name = "button6"; this.tableLayoutPanel2.SetRowSpan(this.button6, 2); this.button6.Size = new System.Drawing.Size(85, 14); this.button6.TabIndex = 28; this.button6.Text = "Play &Trailer"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new System.EventHandler(this.button6_Click); // // label3 // this.label3.AutoSize = true; this.tableLayoutPanel2.SetColumnSpan(this.label3, 8); this.label3.Dock = System.Windows.Forms.DockStyle.Fill; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.ForeColor = System.Drawing.SystemColors.HotTrack; this.label3.Location = new System.Drawing.Point(17, 19); this.label3.Name = "label3"; this.tableLayoutPanel2.SetRowSpan(this.label3, 6); this.label3.Size = new System.Drawing.Size(750, 92); this.label3.TabIndex = 22; this.label3.Text = "Movie Description"; this.label3.UseCompatibleTextRendering = true; // // label4 // this.label4.AutoSize = true; this.label4.Dock = System.Windows.Forms.DockStyle.Fill; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.Location = new System.Drawing.Point(400, 117); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(108, 13); this.label4.TabIndex = 23; this.label4.Text = "mpaa"; // // label5 // this.label5.AutoSize = true; this.label5.Dock = System.Windows.Forms.DockStyle.Fill; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.Location = new System.Drawing.Point(514, 117); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(64, 13); this.label5.TabIndex = 25; this.label5.Text = "runtime"; // // label6 // this.label6.AutoSize = true; this.label6.Dock = System.Windows.Forms.DockStyle.Fill; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(17, 117); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(128, 13); this.label6.TabIndex = 26; this.label6.Text = "Genera"; // // label7 // this.label7.AutoSize = true; this.label7.Dock = System.Windows.Forms.DockStyle.Fill; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(151, 117); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(116, 13); this.label7.TabIndex = 24; this.label7.Text = "year"; // // label13 // this.label13.AutoSize = true; this.label13.Dock = System.Windows.Forms.DockStyle.Fill; this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label13.Location = new System.Drawing.Point(273, 117); this.label13.Name = "label13"; this.label13.Size = new System.Drawing.Size(121, 13); this.label13.TabIndex = 32; this.label13.Text = "imdb stars"; // // pictureBox1 // this.tableLayoutPanel1.SetColumnSpan(this.pictureBox1, 3); this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.pictureBox1.Location = new System.Drawing.Point(559, 41); this.pictureBox1.Name = "pictureBox1"; this.tableLayoutPanel1.SetRowSpan(this.pictureBox1, 7); this.pictureBox1.Size = new System.Drawing.Size(138, 327); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.TabIndex = 20; this.pictureBox1.TabStop = false; // // listBox1 // this.listBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.tableLayoutPanel1.SetColumnSpan(this.listBox1, 11); this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.listBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listBox1.FormattingEnabled = true; this.listBox1.Location = new System.Drawing.Point(0, 0); this.listBox1.Margin = new System.Windows.Forms.Padding(0); this.listBox1.Name = "listBox1"; this.tableLayoutPanel1.SetRowSpan(this.listBox1, 9); this.listBox1.ShowItemToolTips = false; this.listBox1.Size = new System.Drawing.Size(548, 371); this.listBox1.Sorted = Telerik.WinControls.Enumerations.SortStyle.Ascending; this.listBox1.TabIndex = 25; this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged_1); ((Telerik.WinControls.UI.RadListBoxElement)(this.listBox1.GetChildAt(0))).SortItems = Telerik.WinControls.Enumerations.SortStyle.Ascending; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.listBox1.GetChildAt(0).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; // // label9 // this.label9.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.label9, 9); this.label9.Dock = System.Windows.Forms.DockStyle.Fill; this.label9.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.label9.Font = new System.Drawing.Font("Arial Narrow", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.ForeColor = System.Drawing.Color.Black; this.label9.Location = new System.Drawing.Point(551, 15); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(235, 23); this.label9.TabIndex = 31; this.label9.Text = "MOVIE TITLE"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // splitter1 // this.splitter1.Location = new System.Drawing.Point(0, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(3, 508); this.splitter1.TabIndex = 5; this.splitter1.TabStop = false; // // imageList1 // this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit; this.imageList1.ImageSize = new System.Drawing.Size(16, 16); this.imageList1.TransparentColor = System.Drawing.Color.Transparent; // // folderBrowserDialog1 // this.folderBrowserDialog1.RootFolder = System.Environment.SpecialFolder.MyComputer; this.folderBrowserDialog1.ShowNewFolderButton = false; // // radListBoxItem5 // this.radListBoxItem5.Name = "radListBoxItem5"; // // radThemeManager1 // themeSource1.ThemeLocation = "movieliststylesheet.xml"; themeSource2.ThemeLocation = "movieliststylesheet.xml"; this.radThemeManager1.LoadedThemes.AddRange(new Telerik.WinControls.ThemeSource[] { themeSource1, themeSource2}); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.ClientSize = new System.Drawing.Size(792, 508); this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.KeyPreview = true; this.Menu = this.mainMenu1; this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Movie List v.1"; this.TransparencyKey = System.Drawing.Color.LightPink; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); this.panel1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.listBox1)).EndInit(); this.ResumeLayout(false); }
public void Insert(int index, ThemeSource value) { this.List.Insert(index, (object)value); }
public int IndexOf(ThemeSource value) { return(this.List.IndexOf((object)value)); }
public bool Contains(ThemeSource value) { return(this.List.Contains((object)value)); }
/// <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(); Telerik.WinControls.UI.CarouselBezierPath carouselBezierPath1 = new Telerik.WinControls.UI.CarouselBezierPath(); Telerik.WinControls.ThemeSource themeSource1 = new Telerik.WinControls.ThemeSource(); Telerik.WinControls.ThemeSource themeSource2 = new Telerik.WinControls.ThemeSource(); Telerik.WinControls.ThemeSource themeSource3 = new Telerik.WinControls.ThemeSource(); this.radCarouselAlbums = new Telerik.WinControls.UI.RadCarousel(); this.albumsBindingSource = new System.Windows.Forms.BindingSource(this.components); this.musicCollectionDataSet = new Telerik.Examples.WinControls.DataSources.MusicCollectionDataSet(); this.roundRectShape1 = new Telerik.WinControls.RoundRectShape(this.components); this.radThemeManager1 = new Telerik.WinControls.RadThemeManager(); this.albumsTableAdapter = new Telerik.Examples.WinControls.DataSources.MusicCollectionDataSetTableAdapters.AlbumsTableAdapter(); this.radTitleBar1 = new Telerik.WinControls.UI.RadTitleBar(); this.radBtnDownloads = new Telerik.WinControls.UI.RadButton(); this.radBtnArtists = new Telerik.WinControls.UI.RadButton(); this.radBtnAlbums = new Telerik.WinControls.UI.RadButton(); this.radBtnSongs = new Telerik.WinControls.UI.RadButton(); this.radComboSearch = new Telerik.WinControls.UI.RadDropDownList(); ((System.ComponentModel.ISupportInitialize)(this.radCarouselAlbums)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.albumsBindingSource)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.musicCollectionDataSet)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnDownloads)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnArtists)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnAlbums)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnSongs)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radComboSearch)).BeginInit(); this.SuspendLayout(); // // radCarouselAlbums // this.radCarouselAlbums.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.radCarouselAlbums.BackColor = System.Drawing.Color.Transparent; this.radCarouselAlbums.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; carouselBezierPath1.CtrlPoint1 = new Telerik.WinControls.UI.Point3D(12.278630460448643, 48.166259168704158, 300); carouselBezierPath1.CtrlPoint2 = new Telerik.WinControls.UI.Point3D(87.839433293978743, 47.677261613691932, 300); carouselBezierPath1.FirstPoint = new Telerik.WinControls.UI.Point3D(6.3754427390791024, 50.8557457212714, -400); carouselBezierPath1.LastPoint = new Telerik.WinControls.UI.Point3D(93.860684769775673, 51.100244498777506, -400); carouselBezierPath1.ZScale = 200; this.radCarouselAlbums.CarouselPath = carouselBezierPath1; this.radCarouselAlbums.DataSource = this.albumsBindingSource; this.radCarouselAlbums.ForeColor = System.Drawing.Color.White; this.radCarouselAlbums.Location = new System.Drawing.Point(2, 161); this.radCarouselAlbums.Name = "radCarouselAlbums"; this.radCarouselAlbums.NavigationButtonsOffset = new System.Drawing.Size(80, 20); // // // this.radCarouselAlbums.RootElement.ForeColor = System.Drawing.Color.White; this.radCarouselAlbums.SelectedIndex = -1; this.radCarouselAlbums.Size = new System.Drawing.Size(845, 404); this.radCarouselAlbums.TabIndex = 0; this.radCarouselAlbums.ThemeName = "ControlDefault"; this.radCarouselAlbums.VisibleItemCount = 7; this.radCarouselAlbums.SelectedIndexChanged += new System.EventHandler(this.radCarousel1_SelectedIndexChanged); this.radCarouselAlbums.ItemDataBound += new Telerik.WinControls.UI.ItemDataBoundEventHandler(this.radCarousel1_ItemDataBound); ((Telerik.WinControls.Primitives.FillPrimitive)(this.radCarouselAlbums.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radCarouselAlbums.GetChildAt(0).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.UI.RadRepeatButtonElement)(this.radCarouselAlbums.GetChildAt(0).GetChildAt(3))).Image = global::Telerik.Examples.WinControls.Properties.Resources.carousel_leftArrow; ((Telerik.WinControls.UI.RadRepeatButtonElement)(this.radCarouselAlbums.GetChildAt(0).GetChildAt(4))).Image = global::Telerik.Examples.WinControls.Properties.Resources.carousel_rightArrow; // // albumsBindingSource // this.albumsBindingSource.DataMember = "Albums"; this.albumsBindingSource.DataSource = this.musicCollectionDataSet; // // musicCollectionDataSet // this.musicCollectionDataSet.DataSetName = "MusicCollectionDataSet"; this.musicCollectionDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; // // radThemeManager1 // themeSource1.StorageType = Telerik.WinControls.ThemeStorageType.Resource; themeSource1.ThemeLocation = Telerik.WinControls.VBExamplesHelper.StripPath("Telerik.Controls.Examples.Carousel.MusicLibrary.ButtonMusicLibrary.xml"); themeSource2.StorageType = Telerik.WinControls.ThemeStorageType.Resource; themeSource2.ThemeLocation = Telerik.WinControls.VBExamplesHelper.StripPath("Telerik.Examples.WinControls.Carousel.MusicLibrary.ButtonMusicLibrary.xml"); themeSource3.StorageType = Telerik.WinControls.ThemeStorageType.Resource; themeSource3.ThemeLocation = Telerik.WinControls.VBExamplesHelper.StripPath("Telerik.Examples.WinControls.Carousel.MusicLibrary.ButtonMusicLibrary.xml"); this.radThemeManager1.LoadedThemes.AddRange(new Telerik.WinControls.ThemeSource[] { themeSource1, themeSource2, themeSource3 }); // // albumsTableAdapter // this.albumsTableAdapter.ClearBeforeFill = true; // // radTitleBar1 // this.radTitleBar1.BackColor = System.Drawing.Color.Transparent; this.radTitleBar1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.radTitleBar1.Text = "Music Library Demo"; this.radTitleBar1.Dock = System.Windows.Forms.DockStyle.Top; this.radTitleBar1.Location = new System.Drawing.Point(2, 2); this.radTitleBar1.Name = "radTitleBar1"; this.radTitleBar1.Size = new System.Drawing.Size(846, 27); this.radTitleBar1.TabIndex = 2; this.radTitleBar1.TabStop = false; this.radTitleBar1.Text = "radTitleBar1"; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(0))).Margin = new System.Windows.Forms.Padding(7, 0, 7, 0); ((Telerik.WinControls.Primitives.ImagePrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.TextPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(1))).Text = "Music Library Demo"; ((Telerik.WinControls.Primitives.TextPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(1))).ForeColor = System.Drawing.Color.White; ((Telerik.WinControls.Primitives.TextPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(1))).Font = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(178))); ((Telerik.WinControls.Primitives.TextPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(1))).Margin = new System.Windows.Forms.Padding(10, 0, 0, 0); ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0))).Image = global::Telerik.Examples.WinControls.Properties.Resources.FL_min; ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0))).Margin = new System.Windows.Forms.Padding(0, 0, -2, 0); ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0).GetChildAt(0))).Name = "MinimizeButtonFill"; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(0).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1))).Image = global::Telerik.Examples.WinControls.Properties.Resources.FL_Max; ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1))).Margin = new System.Windows.Forms.Padding(0, 0, -2, 0); ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1).GetChildAt(0))).Name = "MaximizeButtonFill"; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(1).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.UI.RadImageButtonElement)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(2))).Image = global::Telerik.Examples.WinControls.Properties.Resources.FL_Close; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(2).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(2).GetChildAt(0))).Name = "CloseButtonFill"; ((Telerik.WinControls.Primitives.BorderPrimitive)(this.radTitleBar1.GetChildAt(0).GetChildAt(2).GetChildAt(2).GetChildAt(2).GetChildAt(2))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed; // // radBtnDownloads // this.radBtnDownloads.AllowShowFocusCues = true; this.radBtnDownloads.BackColor = System.Drawing.Color.Transparent; this.radBtnDownloads.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radBtnDownloads.ForeColor = System.Drawing.Color.Black; this.radBtnDownloads.Location = new System.Drawing.Point(489, 47); this.radBtnDownloads.Name = "radBtnDownloads"; // // // this.radBtnDownloads.RootElement.ForeColor = System.Drawing.Color.Black; this.radBtnDownloads.Size = new System.Drawing.Size(119, 34); this.radBtnDownloads.TabIndex = 3; this.radBtnDownloads.Text = "Downloads"; this.radBtnDownloads.ThemeName = "MusicLibrary"; ((Telerik.WinControls.UI.RadButtonElement)(this.radBtnDownloads.GetChildAt(0))).Text = "Downloads"; ((Telerik.WinControls.UI.RadButtonElement)(this.radBtnDownloads.GetChildAt(0))).BackColor = System.Drawing.Color.Transparent; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radBtnDownloads.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; ((Telerik.WinControls.Primitives.FocusPrimitive)(this.radBtnDownloads.GetChildAt(0).GetChildAt(3))).BackColor = System.Drawing.Color.Transparent; // // radBtnArtists // this.radBtnArtists.AllowShowFocusCues = true; this.radBtnArtists.BackColor = System.Drawing.Color.Transparent; this.radBtnArtists.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radBtnArtists.ForeColor = System.Drawing.Color.Black; this.radBtnArtists.Location = new System.Drawing.Point(619, 47); this.radBtnArtists.Name = "radBtnArtists"; // // // this.radBtnArtists.RootElement.ForeColor = System.Drawing.Color.Black; this.radBtnArtists.Size = new System.Drawing.Size(77, 34); this.radBtnArtists.TabIndex = 3; this.radBtnArtists.Text = "Artists"; this.radBtnArtists.ThemeName = "MusicLibrary"; ((Telerik.WinControls.UI.RadButtonElement)(this.radBtnArtists.GetChildAt(0))).Text = "Artists"; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radBtnArtists.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; // // radBtnAlbums // this.radBtnAlbums.AllowShowFocusCues = true; this.radBtnAlbums.BackColor = System.Drawing.Color.Transparent; this.radBtnAlbums.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radBtnAlbums.ForeColor = System.Drawing.Color.Black; this.radBtnAlbums.Location = new System.Drawing.Point(705, 47); this.radBtnAlbums.Name = "radBtnAlbums"; // // // this.radBtnAlbums.RootElement.ForeColor = System.Drawing.Color.Black; this.radBtnAlbums.Size = new System.Drawing.Size(77, 34); this.radBtnAlbums.TabIndex = 3; this.radBtnAlbums.Text = "Albums"; this.radBtnAlbums.ThemeName = "MusicLibrary"; ((Telerik.WinControls.UI.RadButtonElement)(this.radBtnAlbums.GetChildAt(0))).Text = "Albums"; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radBtnAlbums.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; // // radBtnSongs // this.radBtnSongs.AllowShowFocusCues = true; this.radBtnSongs.BackColor = System.Drawing.Color.Transparent; this.radBtnSongs.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.radBtnSongs.ForeColor = System.Drawing.Color.Black; this.radBtnSongs.Location = new System.Drawing.Point(786, 47); this.radBtnSongs.Name = "radBtnSongs"; // // // this.radBtnSongs.RootElement.ForeColor = System.Drawing.Color.Black; this.radBtnSongs.Size = new System.Drawing.Size(67, 34); this.radBtnSongs.TabIndex = 3; this.radBtnSongs.Text = "Songs"; this.radBtnSongs.ThemeName = "MusicLibrary"; ((Telerik.WinControls.UI.RadButtonElement)(this.radBtnSongs.GetChildAt(0))).Text = "Songs"; ((Telerik.WinControls.Primitives.FillPrimitive)(this.radBtnSongs.GetChildAt(0).GetChildAt(0))).Visibility = Telerik.WinControls.ElementVisibility.Hidden; // // radComboSearch // this.radComboSearch.Location = new System.Drawing.Point(642, 113); this.radComboSearch.Name = "radComboSearch"; this.radComboSearch.NullText = "Search..."; // // // this.radComboSearch.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren; this.radComboSearch.Size = new System.Drawing.Size(180, 20); this.radComboSearch.TabIndex = 4; this.radComboSearch.Validated += new System.EventHandler(this.radComboBox1_Validated); this.radComboSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.radComboBox1_KeyDown); this.radComboSearch.TextChanged += new System.EventHandler(this.radComboBox1_TextChanged); // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.BackgroundImage = global::Telerik.Examples.WinControls.Properties.Resources.carousel_first_look_bg; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.BorderAlignment = System.Drawing.Drawing2D.PenAlignment.Center; this.BorderColor = System.Drawing.SystemColors.WindowFrame; this.ClientSize = new System.Drawing.Size(850, 620); this.Controls.Add(this.radComboSearch); this.Controls.Add(this.radBtnSongs); this.Controls.Add(this.radBtnAlbums); this.Controls.Add(this.radBtnArtists); this.Controls.Add(this.radBtnDownloads); this.Controls.Add(this.radTitleBar1); this.Controls.Add(this.radCarouselAlbums); this.MaximizeBox = false; this.MaximumSize = new System.Drawing.Size(850, 620); this.MinimumSize = new System.Drawing.Size(850, 620); this.Name = "Form1"; this.Padding = new System.Windows.Forms.Padding(2, 2, 2, 5); this.Shape = this.roundRectShape1; this.Text = "Music Library Demo"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.radCarouselAlbums)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.albumsBindingSource)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.musicCollectionDataSet)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radTitleBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnDownloads)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnArtists)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnAlbums)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radBtnSongs)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radComboSearch)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// <para>Inserts a <see cref='Telerik.WinControls.ThemeSource'/> into the <see cref='Telerik.WinControls.ThemeSourceCollection'/> at the specified index.</para> /// </summary> /// <param name='index'>The zero-based index where <paramref name='value'/> should be inserted.</param> /// <param name=' value'>The <see cref='Telerik.WinControls.ThemeSource'/> to insert.</param> /// <returns><para>None.</para></returns> public void Insert(int index, ThemeSource value) { List.Insert(index, value); }
/// <summary> /// <para> Removes a specific <see cref='Telerik.WinControls.ThemeSource'/> from the /// <see cref='Telerik.WinControls.ThemeSourceCollection'/> .</para> /// </summary> /// <param name='value'>The <see cref='Telerik.WinControls.ThemeSource'/> to remove from the <see cref='Telerik.WinControls.ThemeSourceCollection'/> .</param> /// <returns><para>None.</para></returns> /// <exception cref='System.ArgumentException'><paramref name='value'/> is not found in the Collection. </exception> public void Remove(ThemeSource value) { List.Remove(value); }
public void Remove(ThemeSource value) { this.List.Remove((object)value); }