public UserControl_ChooseThemes(SGForm_Function_SystemStyle sgfrm, SystemGear.窗体.SGForm_Main mainfrm) { InitializeComponent(); this.loadinstalledskins(); this.sgfrm = sgfrm; this.mainfrm = mainfrm; this.DrawSkin(); }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SystemGear.窗体.SGForm_Main frm = new SystemGear.窗体.SGForm_Main(args); // bool res=CheckThread(args); // if (res == true) { Application.ExitThread(); frm.SHOULDBECLOSED = true; } Application.Run(frm); }
public SGUserControl_EditMainTile(string h, string jie, string tiletype, SGModernButton b, SystemGear.窗体.SGForm_Main m) { InitializeComponent(); //SKIN SGFunction.Skins.DrawAllControlInUserControl(this, SGFunction.Skins.Skins_GetControlColorSetting("DIALOG_STANDARD", "BK")); //MyNormalButton2.ForeColor = MyNormalButton3.ForeColor = MyNormalButton4.ForeColor = MyNormalButton5.ForeColor = MyNormalButton6.ForeColor = MyNormalButton1.ForeColor = MyNormalButton11.ForeColor = SGFunction.Skins.Skins_GetControlColorSetting("btn_other", "fr"); //MyNormalButton2.BackColor = MyNormalButton3.BackColor = MyNormalButton4.BackColor = MyNormalButton5.BackColor = MyNormalButton6.BackColor =MyNormalButton1.BackColor =MyNormalButton11.BackColor =SGFunction.Skins.Skins_GetControlColorSetting("btn_other", "bk"); // this.BackColor = SGFunction.Skins.Skins_GetControlColorSetting("dialog_standard", "bk"); // sgLabel2.ForeColor = sgLabel3.ForeColor = sgLabel4.ForeColor = sgLabel4.ForeColor = sgLabel5.ForeColor = sgLabel6.ForeColor = sgLabel7.ForeColor = sgLabel8.ForeColor = sgLabel9.ForeColor = SGFunction.Skins.Skins_GetControlColorSetting("LAB_MAININFO", "FR"); // sgLabel1.ForeColor = SGFunction.Skins.Skins_GetControlColorSetting("LABEL_FUNINFO", "FR"); // MyNormalButton132.BackColor = SGFunction.Skins.Skins_GetControlColorSetting("btn_other1", "bk"); // sgTextBox_bakcimge.ForeColor = sgTextBox_infotip.ForeColor = sgTextBox_logo36.ForeColor = sgTextBox_logo36_x.ForeColor = sgTextBox_logo72.ForeColor = sgTextBox_name.ForeColor = sgTextBox_shell.ForeColor = SGFunction.Skins.Skins_GetControlColorSetting("TEXTBOX", "FR"); //COIDE this.h = h; this.jie = jie; this.tiletype = tiletype; btn = b; main = m; //读取信息 //定义样式 string cfg = SGFunction.SpecialFoldersOrFile.GetSystemGearSpecialFolderOrFile("config") + "\\MainTile.sgcf"; string read = SGFunction.ConfigFileOperate.SGCFFileOperate_GetValue(h, jie, "", cfg, false); ///// switch (tiletype) { case "L": myModernButton_L.Visible = true; myModernButton_L.Location = new Point(7, 29); panel_L.Visible = true; panel_L.Location = panel_usu.Location; panel_usu.Visible = false; LoadMainTile(myModernButton_L, tiletype, read); selectbtn = myModernButton_L; break; case "K": myModernButton_K.Visible = true; myModernButton_K.Location = new Point(7, 29); panel_usu.Visible = true; panel_L.Visible = false; LoadMainTile(myModernButton_K, tiletype, read); selectbtn = myModernButton_K; break; case "Z": myModernButton_Z.Visible = true; myModernButton_Z.Location = new Point(7, 29); panel_usu.Visible = true; panel_L.Visible = false; LoadMainTile(myModernButton_Z, tiletype, read); selectbtn = myModernButton_Z; break; case "X": myModernButton_X.Visible = true; myModernButton_X.Location = new Point(7, 29); panel_usu.Visible = false; panel_X.Visible = true; panel_X.Location = panel_usu.Location; panel_L.Visible = false; LoadMainTile(myModernButton_X, tiletype, read); selectbtn = myModernButton_X; break; } }