Exemple #1
0
        static public CCBFileProgress NewInstance(StackPanel parent, string pathname)
        {
            Label            lblCtl   = new Label();
            ProgressBar      pbCtl    = new ProgressBar();
            CCBFileProgress  fp       = new CCBFileProgress(pathname, pbCtl, lblCtl);
            CCBProgressPanel panelCtl = new CCBProgressPanel(fp);

            panelCtl.Children.Add(lblCtl);
            panelCtl.Children.Add(pbCtl);
            parent.Children.Add(panelCtl);
            return(fp);
        }
Exemple #2
0
 private void Populate(string[] users, string[] filelist)
 {
     if (null != users)
     {
         foreach (string user in users)
         {
             lbUsers.Items.Add(user);
         }
     }
     if (null != filelist)
     {
         foreach (string pathname in filelist)
         {
             m_progressList.Add(CCBFileProgress.NewInstance(spStatus, pathname));
         }
     }
 }
Exemple #3
0
 public CCBFileProgressData(CCBFileProgress fp, long cbCur, long cbMax)
 {
     m_fp    = fp;
     m_cbCur = cbCur;
     m_cbMax = cbMax;
 }
Exemple #4
0
 public CCBProgressPanel(CCBFileProgress fileProgress)
     : base()
 {
     m_fileProgress = fileProgress;
 }