public void CloseBar()
 {
     pbWindow.Close();
     pbWindow = null;
 }
 public ProgBarViewModel()
 {
     pbWindow = new ProgBarWindow(this);
 }