示例#1
0
        public bool? Run(IInstallStatusUpdate status, CancellationToken token)
        {
            if (!_prompts.BuildFOMODsPrompt())
                return false;

            //+1 (opt)
            status.ItemsTotal++;
            status.CurrentOperation = "Building FOMODs";

            var fomodStatus = new InstallStatus(_installer.ProgressMinorOperation, _installer.Token);
            _fomod.BuildAll(fomodStatus, _installer.DirTTWMain, _installer.DirTTWOptional, _prompts.TTWSavePath);

            return true;
        }
示例#2
0
 private void UpdateProgressBar(InstallStatus opProg, TextProgressBar bar)
 {
     bar.Maximum = opProg.ItemsTotal;
     bar.Value = opProg.ItemsDone;
     bar.CustomText = opProg.CurrentOperation;
 }