Ejemplo n.º 1
0
 public Notifications(Cloud cloudViewModel)
 {
     this.cloudViewModel = cloudViewModel;
     Delete    = new Command <Notification>(async(parameter) => await delete(parameter));
     DeleteAll = new Command(async() => await deleteAll());
     ShowFailedRecordingTip = new Command <bool>((parameter) =>
     {
         if ((cloudViewModel != null) && (cloudViewModel.DeviceOrientation == DeviceOrientation.Portrait))
         {
             if (parameter)
             {
                 DetailsPage details = new DetailsPage();
                 details.InsertChild(new FailedRecordingTip());
                 Application.Current.MainPage.Navigation.PushAsync(details);
             }
             else
             {
                 Application.Current.MainPage.Navigation.PopAsync();
             }
         }
         else
         {
             FailedRecordingTipVisible = parameter;
         }
     });
 }
Ejemplo n.º 2
0
        private void NotificationsViewModel_OnSelectedItemDetailsChanged(object sender, EventArgs e)
        {
            var selected = notificationsViewModel.SelectedItem;

            if ((selected != null) && (SelectedItem == CloudItem.Notifications) && (DeviceOrientation == DeviceOrientation.Portrait))
            {
                DetailsPage details = new DetailsPage()
                {
                    BindingContext = this
                };
                details.InsertChild(new NotificationItemDetails());
                Application.Current.MainPage.Navigation.PushAsync(details);
            }
        }
Ejemplo n.º 3
0
        private void MediaContentViewModel_OnSelectedItemDetailsChanged(object sender, EventArgs e)
        {
            var selected = mediaContentViewModel.SelectedItem;

            if ((selected != null) && (SelectedItem == CloudItem.Content) && (DeviceOrientation == DeviceOrientation.Portrait) && !selected.IsFolder)
            {
                DetailsPage details = new DetailsPage()
                {
                    BindingContext = this
                };
                details.InsertChild(new ContentItemDetailsView());
                Application.Current.MainPage.Navigation.PushAsync(details);
            }
        }