public void Update()
        {
            if (Status == AssemblyStatus.Updating || SvnUrl == "")
            {
                return;
            }

            Status = AssemblyStatus.Updating;
            OnPropertyChanged("Version");
            try
            {
                GitUpdater.Update(SvnUrl, Logs.MainLog, Directories.RepositoryDir, GetProjectPathRelative());
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }

            Status = AssemblyStatus.Ready;
            OnPropertyChanged("Version");
        }
예제 #2
0
        public void Update()
        {
            if (this.Status == AssemblyStatus.Updating || this.SvnUrl == string.Empty)
            {
                return;
            }

            this.Status = AssemblyStatus.Updating;
            this.OnPropertyChanged("Version");
            try
            {
                GitUpdater.Update(this.SvnUrl);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }

            this.Status = AssemblyStatus.Ready;
            this.OnPropertyChanged("Version");
        }
예제 #3
0
        public void Update()
        {
            if (this.Status == AssemblyStatus.Updating || this.SvnUrl == "")
            {
                return;
            }

            this.Status = AssemblyStatus.Updating;
            this.OnPropertyChanged("Version");
            try
            {
                GitUpdater.Update(this.SvnUrl, Logs.MainLog, Directories.RepositoryDir);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }

            this.Status = AssemblyStatus.Ready;
            this.OnPropertyChanged("Version");
        }