private void ListView_Resize(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            UserControlBase.HideHorizontalScrollBar(sender as ListView);
        }
        public static Color TRANSPARENCY = Color.FromArgb(255, 17, 146, 204); // ZAM transparency key

        public SplitsViewControl()
        {
            InitializeComponent();

            // When goal splits complete, either Red or Green will show in background for this period
            backcolorTimer.Interval = 2000;
            backcolorTimer.Tick    += backcolorTimer_Tick;

            UserControlBase.SetListViewHeaderColor(ref this.lvSplits, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }
        public StatisticsControl()
        {
            InitializeComponent();
            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvCollectors, SystemColors.Control, Color.Black);
        }
        public SplitsConfigControl()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvSplits, SystemColors.Control, Color.Black);
        }
Example #5
0
        public EventCompletionViewControl()
        {
            InitializeComponent();

            this.CountdownTimer          = new();
            this.CountdownTimer.Interval = 1000;
            this.CountdownTimer.Tick    += this.CountdownTimer_Tick;

            UserControlBase.SetListViewHeaderColor(ref this.lvHeader, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
            UserControlBase.SetListViewHeaderColor(ref this.lvDetail, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }
        public SystemControl()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvTrace, SystemColors.Control, SystemColors.ControlText);
        }
Example #7
0
        protected virtual void ListView_Resize_HideHorizontalScrollBar(object sender, EventArgs e)
        {
            ListView lv = (ListView)sender;

            UserControlBase.HideHorizontalScrollBar(lv);

            if (Logger != null)
            {
                Logger.LogInformation($"ListView_Resize_HideHorizontalScrollBar {lv.Name}");
            }
        }
Example #8
0
        public MainViewControl()
        {
            InitializeComponent();

            this.refreshTimer.Interval = 1000;
            this.refreshTimer.Tick    += new System.EventHandler(this.refreshTimer_Tick);

            m_summaryHelper = new SummaryHelper(new SummaryListViewItem(new SummaryItem()));
            m_maCollection  = new Dictionary <DurationType, MovingAverageWrapper>();

            UserControlBase.SetListViewHeaderColor(ref this.lvViewer, Color.FromArgb(255, 243, 108, 61), Color.White);  // Orange ListView headers
            UserControlBase.SetListViewHeaderColor(ref this.lvOverall, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }
        public LapViewControl()
        {
            InitializeComponent();

            m_LapsManager = new LapsManager();
            m_LapsManager.LapUpdatedEvent += this.LapEventHandler;
            m_LapsManager.LapStartedEvent += this.LapStartedEventHandler;


            this.CountdownTimer          = new();
            this.CountdownTimer.Interval = 1000;
            this.CountdownTimer.Tick    += this.CountdownTimer_Tick;

            UserControlBase.SetListViewHeaderColor(ref this.lvLaps, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }
Example #10
0
        public ListViewControl()
        {
            InitializeComponent();

            //this.CountdownTimer = new();
            //this.CountdownTimer.Interval = 1000;
            //this.CountdownTimer.Tick += this.CountdownTimer_Tick;



            UserControlBase.SetListViewHeaderColor(ref this.lvHeader, SystemColors.Control, Color.Black);
            UserControlBase.SetListViewHeaderColor(ref this.lvDetail, SystemColors.Control, Color.Black);

            //this.lvHeader.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(108)))), ((int)(((byte)(61)))));
            //this.lvHeader.ForeColor = System.Drawing.Color.White;
            //this.lvHeader.Font = new System.Drawing.Font("Franklin Gothic Heavy", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
            //UserControlBase.SetListViewHeaderColor(ref this.lvHeader, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers

            //this.lvDetail.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(108)))), ((int)(((byte)(61)))));
            //this.lvDetail.ForeColor = System.Drawing.Color.White;
            //this.lvDetail.Font = new System.Drawing.Font("Franklin Gothic Demi Cond", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
            //UserControlBase.SetListViewHeaderColor(ref this.lvDetail, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }
Example #11
0
        public SplitsViewControl()
        {
            InitializeComponent();

            UserControlBase.SetListViewHeaderColor(ref this.lvSplits, Color.FromArgb(255, 243, 108, 61), Color.White); // Orange ListView headers
        }