Esempio n. 1
0
        private void delayInitTimer_Tick(object sender, EventArgs e)
        {
            _delayInitTimer.Stop();

            _destinationDirectory = Path.Combine(Program.ApplicationInfo.BaseDirectory, "update");
            _destinationFile      = Path.Combine(_destinationDirectory, "update.zip");

            _closeTimer          = new System.Windows.Forms.Timer();
            _closeTimer.Interval = 1000;
            _closeTimer.Tick    += new EventHandler(closeTimer_Tick);

            _service = new ConnectUO.Framework.Web.ConnectUOWebService();
            _service.GetLatestVersionCompleted += new ConnectUO.Framework.Web.GetLatestVersionCompletedEventHandler(service_GetLatestVersionCompleted);

            _service.GetLatestVersionAsync(this);
        }
Esempio n. 2
0
        private void delayInitTimer_Tick(object sender, EventArgs e)
        {
            _delayInitTimer.Stop();

            _destinationDirectory = Path.Combine(Program.ApplicationInfo.BaseDirectory, "update");
            _destinationFile = Path.Combine(_destinationDirectory, "update.zip");

            _closeTimer = new System.Windows.Forms.Timer();
            _closeTimer.Interval = 1000;
            _closeTimer.Tick += new EventHandler(closeTimer_Tick);

            _service = new ConnectUO.Framework.Web.ConnectUOWebService();
            _service.GetLatestVersionCompleted += new ConnectUO.Framework.Web.GetLatestVersionCompletedEventHandler(service_GetLatestVersionCompleted);

            _service.GetLatestVersionAsync(this);
        }