Example #1
0
        public AboutDialog()
        {
            InitializeComponent();

            this.Text = Resources.StrAbout;
            this.labelVersion.Text = String.Format("v{0}", AssemblyVersion);

            _pnlUpdates.Visible = HelperExecutables.CheckIfCanLaunchUpdater();

            _updateChannel = new gitter.Git.GitRepositoryUpdateChannel("git://github.com/amgine/gitter.git", "master");

            Margin = new Padding(0, 0, 0, 0);
        }
Example #2
0
 private void OnUpdateClick(object sender, EventArgs e)
 {
     if (!HelperExecutables.CheckIfUpdaterIsRunning())
     {
         try
         {
             _updateChannel.Update();
             _btnUpdate.Enabled = false;
         }
         catch (Exception exc) when(!exc.IsCritical())
         {
         }
     }
 }
        /// <summary>Update gitter using this channel.</summary>
        public void Update()
        {
            var command = FormatUpdaterCommand();

            HelperExecutables.LaunchUpdater(command);
        }