コード例 #1
0
        private void ListView_Resize(object sender, EventArgs e)
        {
            if (DesignMode)
            {
                return;
            }

            UserControlBase.HideHorizontalScrollBar(sender as ListView);
        }
コード例 #2
0
        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
        }
コード例 #3
0
        public StatisticsControl()
        {
            InitializeComponent();
            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvCollectors, SystemColors.Control, Color.Black);
        }
コード例 #4
0
        public SplitsConfigControl()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvSplits, SystemColors.Control, Color.Black);
        }
コード例 #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
        }
コード例 #6
0
        public SystemControl()
        {
            InitializeComponent();

            if (DesignMode)
            {
                return;
            }

            UserControlBase.SetListViewHeaderColor(ref this.lvTrace, SystemColors.Control, SystemColors.ControlText);
        }
コード例 #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}");
            }
        }
コード例 #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
        }
コード例 #9
0
        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
        }
コード例 #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
        }
コード例 #11
0
        public SplitsViewControl()
        {
            InitializeComponent();

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