public void Download()
        {
            if (!ModuleHandler.LocalPathExists)
            {
                return;
            }

            string msg = "確定要「下載」差異檔案到本機?這會覆蓋本機的檔案。";

            if (MessageBox.Show(msg, "檔案同步", MessageBoxButtons.YesNo) == DialogResult.No)
            {
                return;
            }

            string moduleName        = ModuleHandler.Name;
            List <DownloadFile> list = ModuleHandler.CheckDownloadFile();

            if (list.Count == 0)
            {
                return;
            }

            ModuleHandler.Watcher.EnableRaisingEvents = false;
            DownloadForm dlForm = new DownloadForm(list.ToArray());

            dlForm.FormClosed += new FormClosedEventHandler(dlForm_FormClosed);
            dlForm.ShowDialog();

            //if (NeedDownloadChanged != null)
            //    NeedDownloadChanged.Invoke(this, new NeedStatusEventArgs(false));

            FileEditable fe = CurrentEditor as FileEditable;
            FileUIEditor ui = fe.Editor as FileUIEditor;

            ui.Reload();
        }
        public void Download()
        {
            if (!ModuleHandler.LocalPathExists) return;

            string msg = "確定要「下載」差異檔案到本機?這會覆蓋本機的檔案。";
            if (MessageBox.Show(msg, "檔案同步", MessageBoxButtons.YesNo) == DialogResult.No)
                return;

            string moduleName = ModuleHandler.Name;
            List<DownloadFile> list = ModuleHandler.CheckDownloadFile();

            if (list.Count == 0) return;

            ModuleHandler.Watcher.EnableRaisingEvents = false;
            DownloadForm dlForm = new DownloadForm(list.ToArray());
            dlForm.FormClosed += new FormClosedEventHandler(dlForm_FormClosed);
            dlForm.ShowDialog();

            //if (NeedDownloadChanged != null)
            //    NeedDownloadChanged.Invoke(this, new NeedStatusEventArgs(false));

            FileEditable fe = CurrentEditor as FileEditable;
            FileUIEditor ui = fe.Editor as FileUIEditor;
            ui.Reload();
        }