Example #1
0
        public static void downloaded()
        {
            FormUpdateMessage formUpdateMessage = new FormUpdateMessage();

            formUpdateMessage.label1.Text    = "您已下载!";
            formUpdateMessage.button1.Text   = "立即更新";
            formUpdateMessage.button1.Click += new EventHandler(buttonClick1);
            formUpdateMessage.Show();
        }
Example #2
0
        public static void downloadScessce()
        {
            FormUpdateMessage formUpdateMessage = new FormUpdateMessage();

            formUpdateMessage.label1.Text    = ResourceCulture.GetString("waitForUpdate");
            formUpdateMessage.button1.Text   = ResourceCulture.GetString("installNow");
            formUpdateMessage.button1.Click += new EventHandler(buttonClick1);
            formUpdateMessage.Show();
        }
Example #3
0
        public static void downloadFail()
        {
            FormUpdateMessage formUpdateMessage = new FormUpdateMessage();

            formUpdateMessage.label1.Text    = ResourceCulture.GetString("failDownload");
            formUpdateMessage.button1.Text   = ResourceCulture.GetString("downloadAgain");
            formUpdateMessage.button1.Click += new EventHandler(buttonClick2);
            formUpdateMessage.Show();
        }
Example #4
0
 public static void showForm(string url)
 {
     if (formUpdateMessage.IsDisposed)
     {
         formUpdateMessage = new FormUpdateMessage();
     }
     formUpdateMessage.Show();
     formUpdateMessage.Focus();
 }