コード例 #1
0
        public static ProgressDialog PrepareBackgroundFasterFetch(String repo)
        {
            bool tags         = Settings.Default.FastFetchTagsChecked;
            bool prune        = Settings.Default.FastFetchPruneChecked;
            bool progress     = Settings.Default.FastFetchShowProgress;
            int  maxProcesses = Settings.Default.FastFetchMaxProcesses;

            return(FastFetchDialog.PrepareFetch(repo + " - " + "Faster Fetch", "Faster Fetch Completed", repo, tags, prune, progress, maxProcesses));
        }
コード例 #2
0
        private static Task Fetch(String title, String completedText, String repo, bool tags, bool prune, bool progress, int maxProcesses)
        {
            ProgressDialog dialog = FastFetchDialog.PrepareFetch(title, completedText, repo, tags, prune, progress, maxProcesses);

            dialog.Show();
            dialog.DoProgress();

            return(dialog.WaitForClose());
        }