Esempio n. 1
0
        public NewCharacterPage(CharacterDBModel item)
        {
            InitializeComponent();
            itemview  = new DBCharacterController();
            Title     = "Edit Character";
            Character = item;

            BindingContext = this;
        }
Esempio n. 2
0
        public NewCharacterPage()
        {
            InitializeComponent();
            itemview  = new DBCharacterController();
            Title     = "New Item";
            Character = new CharacterDBModel
            {
                Name  = "class name",
                Image = "image uri"
            };

            BindingContext = this;
        }
Esempio n. 3
0
 public CharacterDetailViewModel(CharacterDBModel item = null)
 {
     Title     = item.Name;
     Character = item;
 }