예제 #1
0
        public AlphaMainPage()
        {
            Title = "keep.grass";

            UpdateButton.Command = new Command(async o => await Domain.ManualUpdateLastPublicActivityAsync());

            InitCircleGraph(CircleGraph, Settings.UserName);
            CircleGraph.HorizontalOptions       = LayoutOptions.FillAndExpand;
            CircleGraph.VerticalOptions         = LayoutOptions.FillAndExpand;
            CircleGraph.IsVisibleLeftTimeBar    = true;
            CircleGraph.IsVisibleSatelliteTexts = true;
        }
예제 #2
0
        public AlphaMainPage()
        {
            Title = "keep.grass";

            UserLabel.Command = new Command(o => AlphaFactory.MakeSureApp().ShowSettingsPage());
            LastActivityStampLabel.Command = new Command(async o => await Domain.ManualUpdateLastPublicActivityAsync());
            //LeftTimeLabel.Command = new Command(async o => await Domain.ManualUpdateLastPublicActivityAsync());
#if WITH_PROGRESSBAR
            ProgressBar.Margin = new Thickness(0, 0, 0, 0);
#endif

            //Build();
        }
예제 #3
0
        public AlphaDetailPage(string UserName)
        {
            Title = User = UserName;

            LastActivityStampLabel.Command = new Command(o => AlphaFactory.MakeSureApp().ShowFeedPage(User));
            LeftTimeLabel.Command          = new Command(async o => await Domain.ManualUpdateLastPublicActivityAsync());

            //Build();

            CircleGraph.IsVisibleSatelliteTexts = true;
            CircleGraph.IsDoughnut    = false;
            CircleGraph.ActiveWait    = TimeSpan.FromMilliseconds(100);
            CircleGraph.AnimationSpan = TimeSpan.FromMilliseconds(500);
            CircleGraph.Now           = DateTime.Now;
        }
예제 #4
0
        public AlphaMainPage()
        {
            Title = "keep.grass";

            UpdateButton.Command = new Command
                                   (
                async o =>
            {
                Analytics.TrackEvent(
                    name: "[Clicked] Update Button",
                    properties: new Dictionary <string, string> {
                    { "Category", "ButtonClick" }, { "Screen", "MainPage" }
                }
                    );
                await Domain.ManualUpdateLastPublicActivityAsync();
            }
                                   );

            InitCircleGraph(CircleGraph, Settings.UserName);
            CircleGraph.HorizontalOptions       = LayoutOptions.FillAndExpand;
            CircleGraph.VerticalOptions         = LayoutOptions.FillAndExpand;
            CircleGraph.IsVisibleLeftTimeBar    = true;
            CircleGraph.IsVisibleSatelliteTexts = true;
        }