Beispiel #1
0
        private bool GetRepository()
        {
            bool rtn = true;

            ghc.Errors.Clear();
            branch         = branches[cmbBranch.SelectedIndex];
            lblStatus.Text = "Downloading Repository, please wait...";
            Application.DoEvents();
            pbMain.Visible = true;
            ghc.GetArchive(RepoOwner, Repository, branch.Name, Properties.Settings.Default.ModulePath);
            if (ghc.Errors.Count > 0)
            {
                rtn = false;
                MessageBox.Show(String.Join(Environment.NewLine, ghc.Errors.ToArray()));
            }
            restart           = ghc.Restart;
            lblStatus.Text    = StringValue.Ready;
            lblRateLimit.Text = ghc.RateLimitRemaining.ToString();
            lastmodified      = ghc.LastModified;
            return(rtn);
        }
 private bool GetRepository()
 {
     bool rtn = true;
     ghc.Errors.Clear();
     branch = branches[cmbBranch.SelectedIndex];
     lblStatus.Text = "Downloading Repository, please wait...";
     Application.DoEvents();
     pbMain.Visible = true;
     ghc.GetArchive(RepoOwner, Repository, branch.Name, Properties.Settings.Default.ModulePath);
     if (ghc.Errors.Count > 0)
     {
         rtn = false;
         MessageBox.Show(String.Join(Environment.NewLine, ghc.Errors.ToArray()));
     }
     restart = ghc.Restart;
     lblStatus.Text = StringValue.Ready;
     lblRateLimit.Text = ghc.RateLimitRemaining.ToString();
     lastmodified = ghc.LastModified;
     return rtn;
 }