Ejemplo n.º 1
0
        private void UninstallButton_Click(object sender, EventArgs e)
        {
            string title  = R._("アンインストールするeventファイルを選択してください");
            string filter = R._("event file|*.event;*.txt|event|*.event|text|*.txt|All files|*");

            OpenFileDialog open = new OpenFileDialog();

            open.Title  = title;
            open.Filter = filter;
            Program.LastSelectedFilename.Load(this, "", open);
            DialogResult dr = open.ShowDialog();

            if (dr != DialogResult.OK)
            {
                return;
            }
            if (!U.CanReadFileRetry(open))
            {
                return;
            }
            Program.LastSelectedFilename.Save(this, "", open);
            string EAFilename = open.FileNames[0];

            PatchForm f = (PatchForm)InputFormRef.JumpFormLow <PatchForm>();

            f.Show();
            PatchForm.PatchSt patchSt = PatchForm.MakeInstantEAToPatch(EAFilename);
            f.UnInstallPatch(patchSt, true);
        }
Ejemplo n.º 2
0
        //マージデータの作成を行う

        //既存のルーチンの設定の保存

        //既存のルーチンをUnInstall
        bool UnInstall()
        {
            PatchForm patchF     = (PatchForm)InputFormRef.JumpForm <PatchForm>();
            string    PatchName  = "Skill20200223";
            string    PatchName2 = "Skill20200223";
            bool      r          = patchF.UnInstallPatch(PatchName, PatchName2, isAutoClose: true, isForceUninstall: true);

            return(r);
        }