Beispiel #1
0
//        -------------------------------------------------------
        public override void OnLoading()
        {
            base.OnLoading();
            _tabBarComponent = new TabBarComponent(this);

            _leftButtonVerticalLayout =
                (VerticalLayout)GetControl("TopInfoLeftButton", true);

            _leftButtonVerticalLayout.AddChild(new Image
            {
                Source = ResourceManager.GetImage("fptr_errorlist")
            });

            _rightButtonVerticalLayout =
                (VerticalLayout)GetControl("TopInfoRightButton", true);

            _rightButtonVerticalLayout.AddChild(new Image
            {
                Source = ResourceManager.GetImage("fptr_settings")
            });

            B672E6Cf63784Ca9A44Eaa6024E0B11B();

            ChangeLayoutsAsync();
        }
Beispiel #2
0
        public override void OnLoading()
        {
            DConsole.WriteLine("SettingsScreen init");
            _tabBarComponent = new TabBarComponent(this);

            Utils.TraceMessage($"Enable Push {Settings.EnablePush}");
        }
        public override void OnLoading()
        {
            base.OnLoading();
            DConsole.WriteLine("OnLoading EventList");

            _tabBarComponent  = new TabBarComponent(this);
            _topInfoComponent = new TopInfoComponent(this)
            {
                LeftButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_sync")
                },
                RightButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_map")
                },
                Header = Translator.Translate("orders")
            };

            var statistic = DBHelper.GetEventsStatistic();

            var extraHorizontalLayout = new HorizontalLayout {
                CssClass = "ExtraHorizontalLayout"
            };
            var leftExtraLayout = new VerticalLayout {
                CssClass = "ExtraLeftLayoutCss"
            };
            var rightExtraLayout = new VerticalLayout {
                CssClass = "ExtraRightLayoutCss"
            };

            extraHorizontalLayout.AddChild(leftExtraLayout);
            extraHorizontalLayout.AddChild(rightExtraLayout);

            leftExtraLayout.AddChild(
                new TextView($"{statistic.DayCompleteAmout}/{statistic.DayTotalAmount}")
            {
                CssClass = "ExtraInfo"
            });
            leftExtraLayout.AddChild(new TextView(Translator.Translate("today"))
            {
                CssClass = "ButtonExtraInfo"
            });

            rightExtraLayout.AddChild(
                new TextView($"{statistic.MonthCompleteAmout}/{statistic.MonthTotalAmount}")
            {
                CssClass = "ExtraInfo"
            });
            rightExtraLayout.AddChild(new TextView(Translator.Translate("per_month"))
            {
                CssClass = "ButtonExtraInfo"
            });

            _topInfoComponent.ExtraLayout.AddChild(extraHorizontalLayout);
        }
Beispiel #4
0
        public override void OnLoading()
        {
            base.OnLoading();
            DConsole.WriteLine("ClientListScreen init");

            _topInfoComponent = new TopInfoComponent(this)
            {
                Header       = Translator.Translate("clients"),
                ArrowVisible = false
            };
            _tabBarComponent = new TabBarComponent(this);
        }
Beispiel #5
0
        public override void OnLoading()
        {
            _tabBarComponent  = new TabBarComponent(this);
            _topInfoComponent = new TopInfoComponent(this)
            {
                LeftButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_sync")
                },
                Header       = Translator.Translate("tenders"),
                ArrowVisible = false
            };

            var extraHorizontalLayout = new HorizontalLayout {
                CssClass = "ExtraHorizontalLayout"
            };
            var leftExtraLayout = new VerticalLayout {
                CssClass = "ExtraLeftLayoutCss"
            };
            var rightExtraLayout = new VerticalLayout {
                CssClass = "ExtraRightLayoutCss"
            };

            extraHorizontalLayout.AddChild(leftExtraLayout);
            extraHorizontalLayout.AddChild(rightExtraLayout);

            leftExtraLayout.AddChild(
                new TextView($"Новые")
            {
                CssClass = "ExtraInfo"
            });
            leftExtraLayout.AddChild(new TextView(Translator.Translate("new").ToLower())
            {
                CssClass = "ButtonExtraInfo"
            });

            rightExtraLayout.AddChild(
                new TextView($"В работе")
            {
                CssClass = "ExtraInfo"
            });
            rightExtraLayout.AddChild(new TextView(Translator.Translate("in_progress").ToLower())
            {
                CssClass = "ButtonExtraInfo"
            });

            _topInfoComponent.ExtraLayout.AddChild(extraHorizontalLayout);
        }
Beispiel #6
0
        public override void OnLoading()
        {
            DConsole.WriteLine("ClientListScreen init");

            _topInfoComponent = new TopInfoComponent(this)
            {
                Header       = Translator.Translate("clients"),
                ArrowVisible = false
            };

            if (_isAddTask)
            {
                _topInfoComponent.LeftButtonControl = new Image {
                    Source = ResourceManager.GetImage("topheading_back")
                };
                _topInfoComponent.ActivateBackButton();
            }
            else
            {
                _tabBarComponent = new TabBarComponent(this);
            }
        }
 public override void OnLoading()
 {
     base.OnLoading();
     DConsole.WriteLine("SettingsScreen init");
     _tabBarComponent = new TabBarComponent(this);
 }