public ImagePaneViewModel(GC_Image gcimage) { if (gcimage == null) throw new ArgumentNullException("gcimage"); this.Item = gcimage; this.Title = gcimage.Name; this.CoreImage = gcimage.Image; }
public ObjectPaneViewModel(GC_Object gcobject) { if (gcobject == null) throw new ArgumentNullException("gcobject"); this.Item = gcobject; this.Title = gcobject.Name; this.Class = gcobject.Class; this.Image = gcobject.Image; }
public ImagePaneViewModel(GC_Image gcimage) { if (gcimage == null) { throw new ArgumentNullException("gcimage"); } this.Item = gcimage; this.Title = gcimage.Name; this.CoreImage = gcimage.Image; }
public ObjectPaneViewModel(GC_Object gcobject) { if (gcobject == null) { throw new ArgumentNullException("gcobject"); } this.Item = gcobject; this.Title = gcobject.Name; this.Class = gcobject.Class; this.Image = gcobject.Image; }
public override void AssignChanges() { IEnumerable <GC_Image> coll = (Item as GC_Image).Game.Images.Where(x => x.Name == this.Title); if (coll.Count() > 0 && coll.FirstOrDefault() != this.Item) { this.Title = this.Title + " - " + Application.Current.FindResource("New").ToString(); } GC_Image img = Item as GC_Image; img.Name = this.Title; img.Image = this.CoreImage; }