예제 #1
0
        public YAppReleaseManager(YAppInterface appInterface)
        {
            this._appInterface = appInterface;
            this._appName      = appInterface.GetAppName();
            this._platform     = appInterface.GetPlatform();
            string fullVersionStr = appInterface.GetVersion();


            int pos = fullVersionStr.LastIndexOf('.');

            if (pos < 0)
            {
                throw new ArgumentException("Invalid version string:" + fullVersionStr);
            }
            string svnVersionStr = fullVersionStr.Substring(pos + 1);

            if (svnVersionStr == "PATCH_WITH_BUILD")
            {
                this._versionPrefix = fullVersionStr.Substring(0, pos);
                this._svnVersion    = 1234;
            }
            else
            {
                this._versionPrefix = fullVersionStr.Substring(0, pos);
                this._svnVersion    = Convert.ToInt32(svnVersionStr);
            }
        }
예제 #2
0
 public NewRelease(YAppInterface appInterface, YAppReleaseManager appReleaseManager)
 {
     InitializeComponent();
     _appInterface                    = appInterface;
     _appReleaseManager               = appReleaseManager;
     checkUpdate.Checked              = _appInterface.GetCheckUpdateSettings();
     this.checkUpdate.CheckedChanged += new System.EventHandler(this.checkUpdate_CheckedChanged);
 }