예제 #1
0
        /// <summary>
        /// Add a monitor to the list and keep track of the maximum width
        /// of the display width of the monitor name
        /// </summary>
        /// <param name="_monitor"></param>
        public void AddMonitor(Monitor _monitor)
        {
            if (_monitor.Name.Length > maxMonitorWidth)
                maxMonitorWidth = _monitor.Name.Length;

            monitors.Add(_monitor);
        }
예제 #2
0
 public Metric(string _name, Monitor _monitor)
     : this(_monitor)
 {
     name = _name;
 }
예제 #3
0
 public Metric(Monitor _monitor)
 {
     monitor = _monitor;
 }