Ejemplo n.º 1
0
 void FileLoaded(int idx, int total)
 {
     if (idx == 0)
     {
         progressPanel.Show(total);
         return;
     }
     progressPanel.Load(idx);
     if (idx == total)
     {
         progressPanel.Hide();
     }
 }
Ejemplo n.º 2
0
        private void SaveData()
        {
            for (int i = 0; i <= 500; i++)
            {
                ProgressPanel progressPanel1 = new ProgressPanel();
                progressPanel1.Caption           = "Loading";
                progressPanel1.Description       = "Please wait...";
                progressPanel1.WaitAnimationType = DevExpress.Utils.Animation.WaitingAnimatorType.Ring;
                progressPanel1.Parent            = this;
                progressPanel1.Top  = 100;
                progressPanel1.Left = 100;
                this.Controls.Add(progressPanel1);
                progressPanel1.Show();
                progressPanel1.BringToFront();
                progressPanel1.WaitAnimationType = DevExpress.Utils.Animation.WaitingAnimatorType.Bar;

                Thread.Sleep(10);
            }
        }
Ejemplo n.º 3
0
 void FileProgressing(int idx, int total, float progress)
 {
     progressPanel.fileSize = configLoader.fileSize;
     progressPanel.Show(idx, total, progress);
 }