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); }
private void ListView_Resize(object sender, EventArgs e) { if (DesignMode) { return; } UserControlBase.HideHorizontalScrollBar(sender as ListView); }
public StatisticsControl() { InitializeComponent(); if (DesignMode) { return; } UserControlBase.SetListViewHeaderColor(ref this.lvCollectors, SystemColors.Control, SystemColors.ControlText); }
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}"); } }
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); }