Ejemplo n.º 1
0
    // The factory handles creation and tracking
    public static Image Create(myObject obj)
    {
        Image image = obj.getImage();

        images[image] = obj;
        return(image);
    }
 public MyObjectViewModel(myObject obj)
 {
     this.obj   = obj;
     this.Image = obj.getImage();
 }
 public void SomethingThatMakesImageChange()
 {
     this.Image = obj.getImage();
     this.RaisePropertyChanged("Image");
 }