Beispiel #1
0
        public void ShowProgress(string msg, int donepercent, int progressid, int init)
        {
            WorkProgressEventArgs e = new WorkProgressEventArgs(msg, donepercent, progressid, init);

            object[] paramslist = { this, e };
            this.BeginInvoke(new WorkProcessEventHandler(UpdateProgress), paramslist);
        }
Beispiel #2
0
 private void UpdateProgress(object sender, WorkProgressEventArgs e)
 {
     if (e.Init == 0)
     {
         label.Text = Framework.Core.Resource.Manager[string.Format("RES_{0}", SYSTEM_DATA_INIT)];
     }
     else
     {
         label.Text = Framework.Core.Resource.Manager[string.Format("RES_{0}", SYSTEM_DATA_READ)];
     }
     ShowMessage.Text = e.Message;
     UpdateProgress(e.DonePercent);
     if (e.ProgressID == 0)
     {
         this.Close();
     }
 }