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;
 }
Exemple #3
0
 public ImagePaneViewModel(GC_Image gcimage)
 {
     if (gcimage == null)
     {
         throw new ArgumentNullException("gcimage");
     }
     this.Item      = gcimage;
     this.Title     = gcimage.Name;
     this.CoreImage = gcimage.Image;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
        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;
        }