Example #1
0
        void updateCheck_OnComplete(object sender, wsdlProcess.WebSvcAsync.EventParams.UpdateAsyncArgs e)
        {
            timer1.Stop();
            if (_formClosed) {
                return;
            }

            this.Invoke(new MethodInvoker(delegate() {

                pb_Update.Visible = false;

                if (e.UpdateAvailable) {
                    string resultMsg = string.Format(Consts.UpdateFormatMsg, e.DownloadUrl);
                    rtb_UpdateResult.Text = resultMsg;
                    rtb_UpdateResult.Visible = true;
                }
                else {
                    rtb_UpdateResult.Text = "WsdlUI is up to date";
                    rtb_UpdateResult.Visible = true;
                }

                rtb_UpdateResult.Visible = true;
            }));
        }
Example #2
0
        void updateCheck_OnComplete(object sender, wsdlProcess.WebSvcAsync.EventParams.UpdateAsyncArgs e)
        {
            Invoke((MethodInvoker)(() => {

                if (e.UpdateAvailable) {
                    string resultMsg = string.Format(Consts.UpdateFormatMsg, e.DownloadUrl);
                    uc_log1.LogSystemMessage(resultMsg);
                }

            }));
        }