public UC_Favorite(UC_FavoriteAudios ucFavoriteAudios) : this() { this.fa = ucFavoriteAudios; }
private void UC_Favorite_Load(object sender, EventArgs e) { fa = new UC_FavoriteAudios(); tabPage3.Controls.Add(fa); fv = new UC_FavoriteVideos(); tabPage4.Controls.Add(fv); //Tab S\V LoadListSV(); rtxtSV.ReadOnly = true; //Tab Image LoadListImage(); //Tab Files LoadListFile(); //Tab Folders LoadListFolder(); //Tab Web LoadListWeb(); #region Language XmlDocument xmlDocLng = new XmlDocument(); if (frmMain.strLanguage == "English") { xmlDocLng.Load(Application.StartupPath + "/Language/Language-English.xml"); } else if (frmMain.strLanguage == "Vietnamese") { xmlDocLng.Load(Application.StartupPath + "/Language/Language-Vietnamese.xml"); } foreach (XmlNode node in xmlDocLng.SelectNodes("Language/Form")) { if (frmMain.Decryption(node.SelectSingleNode("Name").InnerText) == this.Name) { tabPage1.Text = frmMain.Decryption(node.SelectSingleNode("tab1").InnerText); tabPage2.Text = frmMain.Decryption(node.SelectSingleNode("tab2").InnerText); tabPage3.Text = frmMain.Decryption(node.SelectSingleNode("tab3").InnerText); tabPage4.Text = frmMain.Decryption(node.SelectSingleNode("tab4").InnerText); tabPage5.Text = frmMain.Decryption(node.SelectSingleNode("tab5").InnerText); tabPage6.Text = frmMain.Decryption(node.SelectSingleNode("tab6").InnerText); tabPage7.Text = frmMain.Decryption(node.SelectSingleNode("tab7").InnerText); //tab1 colSVID.Text = frmMain.Decryption(node.SelectSingleNode("col1").InnerText); colSVDate.Text = frmMain.Decryption(node.SelectSingleNode("col2").InnerText); colText.Text = frmMain.Decryption(node.SelectSingleNode("col3").InnerText); //tab2 colID.Text = frmMain.Decryption(node.SelectSingleNode("col1").InnerText); colName.Text = frmMain.Decryption(node.SelectSingleNode("col4").InnerText); colLocation.Text = frmMain.Decryption(node.SelectSingleNode("col5").InnerText); //tab5 colIDFiles.Text = frmMain.Decryption(node.SelectSingleNode("col1").InnerText); colNameFiles.Text = frmMain.Decryption(node.SelectSingleNode("col4").InnerText); colTypeFiles.Text = frmMain.Decryption(node.SelectSingleNode("col6").InnerText); colSizeFiles.Text = frmMain.Decryption(node.SelectSingleNode("col7").InnerText); colLocationFiles.Text = frmMain.Decryption(node.SelectSingleNode("col5").InnerText); //tab6 colIDFolders.Text = frmMain.Decryption(node.SelectSingleNode("col1").InnerText); colNameFolders.Text = frmMain.Decryption(node.SelectSingleNode("col4").InnerText); colLocationFolders.Text = frmMain.Decryption(node.SelectSingleNode("col5").InnerText); //tab7 colWebID.Text = frmMain.Decryption(node.SelectSingleNode("col1").InnerText); colWebTitle.Text = frmMain.Decryption(node.SelectSingleNode("col8").InnerText); colWebAdd.Text = frmMain.Decryption(node.SelectSingleNode("col9").InnerText); //tab1 btnRefreshSV.Text = frmMain.Decryption(node.SelectSingleNode("btn1").InnerText); btnSaveAsSV.Text = frmMain.Decryption(node.SelectSingleNode("btn2").InnerText); btnRemoveSV.Text = frmMain.Decryption(node.SelectSingleNode("btn3").InnerText); btnSaveSV.Text = frmMain.Decryption(node.SelectSingleNode("btn4").InnerText); //tab2 btnNewImage.Text = frmMain.Decryption(node.SelectSingleNode("btn5").InnerText); btnDelImage.Text = frmMain.Decryption(node.SelectSingleNode("btn3").InnerText); //tab5 btnAddFiles.Text = frmMain.Decryption(node.SelectSingleNode("btn5").InnerText); btnRemoveFiles.Text = frmMain.Decryption(node.SelectSingleNode("btn3").InnerText); //tab6 btnAddFolders.Text = frmMain.Decryption(node.SelectSingleNode("btn5").InnerText); btnRemoveFolders.Text = frmMain.Decryption(node.SelectSingleNode("btn3").InnerText); //tab7 btnWebHome.Text = frmMain.Decryption(node.SelectSingleNode("btn6").InnerText); btnWebReload.Text = frmMain.Decryption(node.SelectSingleNode("btn7").InnerText); btnWebGo.Text = frmMain.Decryption(node.SelectSingleNode("btn8").InnerText); btnAddWeb.Text = frmMain.Decryption(node.SelectSingleNode("btn4").InnerText); btnRemoveWeb.Text = frmMain.Decryption(node.SelectSingleNode("btn3").InnerText); copyToolStripMenuItem3.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); previewToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item2").InnerText); setAsDesktopBackgroundToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item3").InnerText); openFileLocationToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item4").InnerText); rotateRightToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item5").InnerText); rotateLeftToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item6").InnerText); copyToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); deleteToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item7").InnerText); largeIconToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item8").InnerText); detailsToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item9").InnerText); smallIconToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item10").InnerText); listToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item11").InnerText); tileToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item12").InnerText); propertiesToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item13").InnerText); previewToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item2").InnerText); setAsDesktopBackgroundToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item3").InnerText); openFileLocationToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item4").InnerText); rotateRightToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item5").InnerText); rotateLeftToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item6").InnerText); copyToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); deleteToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item7").InnerText); normalToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item14").InnerText); stretchImageToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item15").InnerText); autoSizeToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item16").InnerText); centerImageToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item17").InnerText); zoomToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item18").InnerText); propertiesToolStripMenuItem1.Text = frmMain.Decryption(node.SelectSingleNode("item13").InnerText); cutToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item19").InnerText); copyToolStripMenuItem4.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); pasteToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item20").InnerText); deleteToolStripMenuItem2.Text = frmMain.Decryption(node.SelectSingleNode("item7").InnerText); selectAllToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item21").InnerText); openFilesLocationToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item4").InnerText); copyFilesToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); deleteFilesToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item7").InnerText); propertiesFilesToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item13").InnerText); openFolderToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item22").InnerText); copyFolderToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); deleteFolderToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item7").InnerText); propertiesFolderToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item13").InnerText); openToolStripMenuItem.Text = frmMain.Decryption(node.SelectSingleNode("item23").InnerText); copyToolStripMenuItem2.Text = frmMain.Decryption(node.SelectSingleNode("item1").InnerText); break; } } #endregion #region Theme XmlDocument xmlDocTheme = new XmlDocument(); if (frmMain.strTheme == "Blue") { xmlDocTheme.Load(Application.StartupPath + "/Theme/Theme-Blue.xml"); } else if (frmMain.strTheme == "White") { xmlDocTheme.Load(Application.StartupPath + "/Theme/Theme-White.xml"); } else if (frmMain.strTheme == "Simple") { xmlDocTheme.Load(Application.StartupPath + "/Theme/Theme-Simple.xml"); } foreach (XmlNode node in xmlDocTheme.SelectNodes("Theme/Style")) { if (frmMain.Decryption(node.SelectSingleNode("Name").InnerText) == frmMain.strTheme) { int ibc11 = Convert.ToInt32(frmMain.Decryption(node.SelectSingleNode("bc11").InnerText)); int ibc12 = Convert.ToInt32(frmMain.Decryption(node.SelectSingleNode("bc12").InnerText)); int ibc13 = Convert.ToInt32(frmMain.Decryption(node.SelectSingleNode("bc13").InnerText)); this.BackColor = Color.FromArgb(ibc11, ibc12, ibc13); tabPage1.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage2.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage3.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage4.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage5.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage6.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); tabPage7.BackgroundImage = new Bitmap(myAssembly.GetManifestResourceStream(frmMain.Decryption(node.SelectSingleNode("bg1").InnerText))); break; } } #endregion }