コード例 #1
0
        private ObservableCollection <Grouping <string, NewDealsModel.Deal> > GroupListByDate14022019()
        {
            try
            {
                if (ivm?.GetEvery == null)
                {
                    return(GetEveryThingGrouped);
                }
                var grp = from h in ivm?.GetThisWeek
                          orderby h?.Expiration_Date
                          group h by h?.Expiration_Date.DayOfWeek.ToString() into ThisWeeksGroup
                          select new Grouping <string, NewDealsModel.Deal>(ThisWeeksGroup.Key, ThisWeeksGroup);

                GetEveryThingGrouped.Clear();
                foreach (var g in grp)
                {
                    GetEveryThingGrouped.Add(g);
                }
            }
            catch (Exception ex)
            {
                var log = ex;
                LogService.LogErrors(log.ToString());
                MyToast.DisplayToast(Color.Red, "Slight error occured parsing response");
            }

            return(GetEveryThingGrouped);
        }
コード例 #2
0
        public LoggedOn(string message)
        {
            InitializeComponent();
            //AnimateThisPage();
            store = AccountStore.Create();
            //account = store.FindAccountsForService(Constants.AppName).FirstOrDefault();
            var mytoast = MyToast.DisplayToast(Color.Blue, message);

            this.BindingContext = lvm;
        }