Commands/Program.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using Ionic.Zip;
using System.Text;

namespace igcmd
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        public static string[] args;
        public static string igPath = (Application.StartupPath + "\\").Replace("\\\\", "\\");
        [STAThread]
        static void Main(string[] argv)
        {
            args = argv;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            
            if (args[0] == "iglike")
            {
                Application.Run(new frmLikeOrDislike());
            }
            else if(args[0] == "igdislike")
            {
                Application.Run(new frmLikeOrDislike());
            }
            else if (args[0] == "igupdate")//kiem tra phien ban
            {               
                Application.Run(new frmCheckForUpdate());
            }
            else if (args[0] == "igupload")
            {
                Application.Run(new frmUpload());
            }
            else if (args[0] == "igautoupdate")//tu dong kiem tra phien ban
            {
                Program.AutoUpdate();
            }
            else if (args[0] == "igpacktheme")//dong goi theme thanh *.igtheme
            {
                //cmd: igcmd.exe igpacktheme "srcDir" "desFile"
                Program.PackTheme(args[1], args[2]);
            }
            else if (args[0] == "iginstalltheme")//cai dat theme
            {
                Application.Run(new frmInstallTheme());
            }
        }



        /// <summary>
        /// Đóng gói theme thành *.igtheme
        /// </summary>
后面还有 148 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。