/// <summary>
 /// A Constructor.
 /// Adds PropertyChanged event handler.
 /// Adds event handler for MonthPageListView.ItemSelected to move InsertPage with selected item.
 /// </summary>
 public MonthPage()
 {
     DependencyService.Get <ISecurityAPIs>().PrivilageAccepted += MonthPage_PrivilageAccepted;
     InitializeComponent();
     PropertyChanged += OnPropertyChanged;
     MonthPageListView.ItemSelected += async(o, e) =>
     {
         RecordItem item       = e.SelectedItem as RecordItem;
         InsertPage insertPage = new InsertPage(item, "Update", item.Index);
         await Navigation.PushAsync(insertPage);
     };
 }
 /// <summary>
 /// The event handler of the click event.
 /// When a user clicks a create button in order to create event, this event handler would be invoked.
 /// This handler would create an instance of the InsertPaget.xaml
 /// and push the instance to the navigation stack in an asynchronous manner.
 /// <param name="sender">The object what got the event</param>
 /// <param name="e">Data of the event</param>
 /// </summary>
 async void OnButtonClicked(object sender, EventArgs e)
 {
     RecordItem item       = new RecordItem();
     InsertPage insertPage = new InsertPage(item, "Save", 0);
     await Navigation.PushAsync(insertPage);
 }