using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Text;
using Xamarin.Forms;

namespace PlantBox.Client.Models
{
    class MenuPageItem : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public ImageSource Image { get; }
        public string Title { get; }
        public Page Page { get; }

        public MenuPageItem(string title, ImageSource image, Page targetPage)
        {
            Image = image;
            Title = title;
            Page = targetPage;
        }

        public void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
