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); }
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)); } } }
public CCBFileProgressData(CCBFileProgress fp, long cbCur, long cbMax) { m_fp = fp; m_cbCur = cbCur; m_cbMax = cbMax; }
public CCBProgressPanel(CCBFileProgress fileProgress) : base() { m_fileProgress = fileProgress; }