示例#1
0
        public static void Main(string[] args)
        {
            ConsoleSelfPatcherListener listener = new ConsoleSelfPatcherListener();
            SelfPatcher selfPatcher             = new SelfPatcher(listener);

            listener.selfPatcher = selfPatcher;

            selfPatcher.Run(args);
        }
        public SelfPatcherWindow(string[] args)
        {
            InitializeComponent();

            closeButton.Click += (s, e) => Close();

            selfPatcher = new SelfPatcher(this);
            this.args   = args;

            Thread selfPatcherThread = new Thread(new ThreadStart(SelfPatcherThread))
            {
                IsBackground = false
            };

            selfPatcherThread.Start();
        }