Exemplo n.º 1
0
 public ImagePaneViewModel(GC_Image gcimage)
 {
     if (gcimage == null)
         throw new ArgumentNullException("gcimage");
     this.Item = gcimage;
     this.Title = gcimage.Name;
     this.CoreImage = gcimage.Image;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
        }