public SillyDudeVmo(SillyDude dude, ICommand onItemTappedCommand) { Id = dude.Id; Name = dude.Name; Role = dude.Role; Description = dude.Description; ImageUrl = dude.ImageUrl; SillinessDegree = dude.SillinessDegree; SourceUrl = dude.SourceUrl; OnItemTappedCommand = onItemTappedCommand; }
public int SaveItem(SillyDude item) { // if (item.Id != 0) // { // database.Update(item); // System.Console.WriteLine("Заапдейчен {0} iq {1}. Всего {2} первонажей", item.Name, item.Id, (database.Table<Character>().ToList()).Count); // return item.Id; // } // else // { System.Console.WriteLine("Заинсерчен {0} iq {1}. Всего {2} первонажей", item.Name, item.Id, (databaseTime.Table <SillyDude>().ToList()).Count); return(databaseTime.Insert(item)); //} }
public SillyDudeVmo(SillyDude dude, ICommand tapCommand) { if (dude != null) { Id = dude.Id; Name = dude.Name; FullName = dude.FullName; Role = dude.Role; Description = dude.Description; ImageUrl = dude.ImageUrl; SillinessDegree = dude.SillinessDegree; SourceUrl = dude.SourceUrl; } TapCommand = tapCommand; }
public void ReplaceItem(SillyDude item) { databaseTime.InsertOrReplace(item); }
public void UpdateItem(SillyDude item) { databaseTime.Update(item); }
public SillyDudeVm(SillyDude other) { TimeLineEvent = other; }