Exemple #1
0
        public override void OnLoad(EventArgs args)
        {
            bool smallScreen = Parent.Width <= 1180;

            AlwaysOnTopOfMain    = true;
            this.BackgroundColor = ActiveTheme.Instance.SecondaryBackgroundColor;
            this.Title           = "Print Monitor".Localize();

            var topToBottom = new FlowLayoutWidget(FlowDirection.TopToBottom)
            {
                VAnchor = VAnchor.ParentBottomTop,
                HAnchor = HAnchor.ParentLeftRight
            };

            this.AddChild(topToBottom);

            topToBottom.AddChild(CreateActionBar(smallScreen));

            topToBottom.AddChild(CreateHorizontalLine());

            topToBottom.AddChild(CreateDropShadow());

            basicBody     = new BasicBody();
            bodyContainer = new GuiWidget()
            {
                VAnchor = VAnchor.ParentBottomTop,
                HAnchor = HAnchor.ParentLeftRight,
            };
            bodyContainer.AddChild(basicBody);
            topToBottom.AddChild(bodyContainer);

            base.OnLoad(args);
        }
        public PrintingWindow()
            : base(1280, 750)
        {
            AlwaysOnTopOfMain    = true;
            this.BackgroundColor = ActiveTheme.Instance.SecondaryBackgroundColor;
            this.Title           = "Print Monitor".Localize();

            var topToBottom = new FlowLayoutWidget(FlowDirection.TopToBottom)
            {
                VAnchor = VAnchor.ParentBottomTop,
                HAnchor = HAnchor.ParentLeftRight
            };

            this.AddChild(topToBottom);

            topToBottom.AddChild(CreateActionBar());

            topToBottom.AddChild(CreateHorizontalLine());

            topToBottom.AddChild(CreateDropShadow());

            basicBody     = new BasicBody();
            bodyContainer = new GuiWidget()
            {
                VAnchor = VAnchor.ParentBottomTop,
                HAnchor = HAnchor.ParentLeftRight,
            };
            bodyContainer.AddChild(basicBody);
            topToBottom.AddChild(bodyContainer);
        }