コード例 #1
0
ファイル: ActionBarPlus.cs プロジェクト: soowhy/MatterControl
        public void Create()
        {
            // Set Display Attributes
            this.HAnchor         = HAnchor.ParentLeftRight;
            this.BackgroundColor = ActiveTheme.Instance.PrimaryAccentColor;

            // Add Child Elements
            if (UserSettings.Instance.DisplayMode == ApplicationDisplayType.Responsive)
            {
                this.AddChild(new PrinterConnectAndSelectControl());
            }
            this.AddChild(PrintStatusRow.Create(queueDataView));
            this.Padding = new BorderDouble(bottom: 6);
        }
コード例 #2
0
        public void Create()
        {
            // Set Display Attributes
            this.HAnchor         = HAnchor.ParentLeftRight;
            this.BackgroundColor = ActiveTheme.Instance.PrimaryAccentColor;

            // Add Child Elements
            if (UserSettings.Instance.DisplayMode == ApplicationDisplayType.Responsive)
            {
                this.AddChild(new ActionBar.PrinterActionRow());
            }
            this.AddChild(PrintStatusRow.Create(queueDataView));
            this.Padding = new BorderDouble(bottom: 6);

            // Add Handlers
            ActiveTheme.ThemeChanged.RegisterEvent(ThemeChanged, ref unregisterEvents);
        }