コード例 #1
0
        public AdvancedOptions()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            if (ZAMsettings.LoggerFactory == null)
            {
                return;
            }

            Logger = ZAMsettings.LoggerFactory.CreateLogger <AdvancedOptions>();

            this.BackColor = Color.AliceBlue;
            this.ForeColor = Color.AliceBlue;

            MSoffice2010ColorManager colorTable = ZAMappearance.ApplyColorTable(this);

            // SfForm is not firing the property changed events so doing it manually here.
            this.AdvancedOptions_BackColorChanged(this, null);
            this.AdvancedOptions_ForeColorChanged(this, null);

            this.Icon = Properties.Resources.ZAMicon;

            UserControlBase.SetListViewHeaderColor(ref this.lvTrace, SystemColors.Control, SystemColors.ControlText);
        }
コード例 #2
0
        private void ListView_Resize(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            UserControlBase.HideHorizontalScrollBar(sender as ListView);
        }
コード例 #3
0
        public StatisticsControl()
        {
            InitializeComponent();
            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvCollectors, SystemColors.Control, SystemColors.ControlText);
        }
コード例 #4
0
        protected virtual void ListView_Resize_HideHorizontalScrollBar(object sender, EventArgs e)
        {
            ListView lv = (ListView)sender;

            UserControlBase.HideHorizontalScrollBar(lv);

            if (Logger != null)
            {
                Logger.LogDebug($"ListView_Resize_HideHorizontalScrollBar {lv.Name}");
            }
        }
コード例 #5
0
        public SystemControl() : base()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            if (ZAMsettings.LoggerFactory == null)
            {
                return;
            }

            Logger = ZAMsettings.LoggerFactory.CreateLogger <SystemControl>();

            UserControlBase.SetListViewHeaderColor(ref this.lvTrace, SystemColors.Control, SystemColors.ControlText);
        }