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[] args) { // Windows Vista or later if (Environment.OSVersion.Version.Major >= 6) { SetProcessDPIAware(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string topcmd = args[0].ToLower().Trim(); if (topcmd == "igupdate")// check for update { Core.CheckForUpdate(); } else if (topcmd == "igautoupdate")// auto check for update { Core.AutoUpdate(); } else if (topcmd == "igpacktheme")// pack theme *.igtheme { //cmd: igcmd.exe igpacktheme "srcDir" "desFile" Core.PackTheme(args[1], args[2]); } else if (topcmd == "iginstalltheme")//install 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]); } }
static void Main(string[] args) { // Windows Vista or later if (Environment.OSVersion.Version.Major >= 6) { SetProcessDPIAware(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Check if the start up directory writable GlobalSetting.IsStartUpDirWritable = GlobalSetting.CheckStartUpDirWritable(); // Enable Portable mode as default if possible GlobalSetting.IsPortableMode = GlobalSetting.IsStartUpDirWritable; string topcmd = args[0].ToLower().Trim(); if (topcmd == "igupdate")// check for update { Core.CheckForUpdate(); } else if (topcmd == "igautoupdate")// auto check for update { Core.AutoUpdate(); } else if (topcmd == "igpacktheme")// pack theme *.igtheme { //cmd: igcmd.exe igpacktheme "srcDir" "desFile" Core.PackTheme(args[1], args[2]); } else if (topcmd == "iginstalltheme")//install theme { Core.InstallTheme(args[1]); } }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string topcmd = args[0].ToLower().Trim(); if (topcmd == "igupdate")// check for update { Core.CheckForUpdate(); } else if (topcmd == "igautoupdate")// auto check for update { Core.AutoUpdate(); } else if (topcmd == "igpacktheme")// pack theme *.igtheme { //cmd: igcmd.exe igpacktheme "srcDir" "desFile" Core.PackTheme(args[1], args[2]); } else if (topcmd == "iginstalltheme")//install theme { Core.InstallTheme(args[1]); } }