static void Main(string[] argv) { args = argv; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string topcmd = args[0].ToLower().Trim(); if (topcmd == "igupdate")//kiem tra phien ban { Core.CheckForUpdate(); } else if (topcmd == "igupload") { Core.Upload(args[1], args[2]); } else if (topcmd == "igautoupdate")//tu dong kiem tra phien ban { Core.AutoUpdate(); } else if (topcmd == "igpacktheme")//dong goi theme thanh *.igtheme { //cmd: igcmd.exe igpacktheme "srcDir" "desFile" Core.PackTheme(args[1], args[2]); } else if (topcmd == "iginstalltheme")//cai dat theme { Core.InstallTheme(args[1]); } }
static void Main(string[] argv) { args = argv; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string topcmd = args[0].ToLower().Trim(); if (topcmd == "igsocial") { Core.Social(); } else if (topcmd == "igupdate")//kiem tra phien ban { Core.CheckForUpdate(); } else if (topcmd == "igupload") { Core.Upload(args[1], args[2]); } else if (topcmd == "igautoupdate")//tu dong kiem tra phien ban { Core.AutoUpdate(); } else if (topcmd == "igpacktheme")//dong goi theme thanh *.igtheme { //cmd: igcmd.exe igpacktheme "srcDir" "desFile" Core.PackTheme(args[1], args[2]); } else if (topcmd == "iginstalltheme")//cai dat theme { Core.InstallTheme(args[1]); } else if (topcmd == "igfollow")//đăng ký theo dõi thông tin ImageGlass { Core.Follow(); } else if (topcmd == "ignewlang")//tạo mới 1 gói ngôn ngữ { Core.NewLanguage(); } else if (topcmd == "igeditlang")//chỉnh sửa gói ngôn ngữ { //cmd: igcmd.exe igeditlang "srcFile" Core.EditLanguage(args[1]); } }