Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new <c>ProgressDialogViewModel</c> instance.
 /// </summary>
 /// <param name="progress">A <c>Progress</c> object to be tracked by the progress dialog.</param>
 /// <param name="parent">The view model calling the progress dialog.</param>
 /// <param name="hideFinishedItems">Specifies whether progress items which are finished
 /// should be hidden from the dialog or not.</param>
 /// <param name="hideEnqueuedItems">Specifies whether progress items that have not yet
 /// received any progress events should be hidden or not.</param>
 public ProgressDialogViewModel(Progress <KeyValuePair <int, string> > progress, ViewModelBase parent,
                                bool HideFinishedItems = false, bool HideEnqueuedItems = false) : this(parent, HideFinishedItems, HideEnqueuedItems)
 {
     this.ProgressList = new List <Progress <KeyValuePair <int, string> > >();
     this.ProgressList.Add(progress);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new <c>ProgressDialogViewModel</c> instance.
 /// </summary>
 /// <param name="progressList">A list of <c>Progress</c> objects to be tracked by the progress dialog.</param>
 /// <param name="parent">The view model calling the progress dialog.</param>
 /// <param name="hideFinishedItems">Specifies whether progress items which are finished
 /// should be hidden from the dialog or not.</param>
 /// <param name="hideEnqueuedItems">Specifies whether progress items that have not yet
 /// received any progress events should be hidden or not.</param>
 public ProgressDialogViewModel(List <Progress <KeyValuePair <int, string> > > progressList, ViewModelBase parent,
                                bool HideFinishedItems = true, bool HideEnqueuedItems = true) : this(parent, HideFinishedItems, HideEnqueuedItems)
 {
     this.ProgressList = progressList;
 }