comparison ServerMonitor/Attributes.cs @ 17:68d7834dc28e

More comments.
author Brad Greco <brad@bgreco.net>
date Sat, 25 May 2019 15:14:26 -0400
parents 3e1a2131f897
children
comparison
equal deleted inserted replaced
16:7626b099aefd 17:68d7834dc28e
1 using System; 1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 2
6 namespace ServerMonitorApp 3 namespace ServerMonitorApp
7 { 4 {
5 /// <summary>
6 /// Attribute for use by check controls to indicate
7 /// the type of check they correspond to.
8 /// </summary>
8 internal class CheckTypeAttribute : Attribute 9 internal class CheckTypeAttribute : Attribute
9 { 10 {
10 public Type CheckType { get; private set; } 11 public Type CheckType { get; private set; }
11 12
12 public CheckTypeAttribute(Type checkType) { CheckType = checkType; } 13 public CheckTypeAttribute(Type checkType) { CheckType = checkType; }
13 } 14 }
14 15
16 /// <summary>
17 /// Attribute for use by checks to determine the order
18 /// they appear in the check type selection combo box.
19 /// </summary>
15 internal class DisplayWeightAttribute : Attribute 20 internal class DisplayWeightAttribute : Attribute
16 { 21 {
17 public int DisplayWeight { get; private set; } 22 public int DisplayWeight { get; private set; }
18 23
19 public DisplayWeightAttribute(int displayWeight) { DisplayWeight = displayWeight; } 24 public DisplayWeightAttribute(int displayWeight) { DisplayWeight = displayWeight; }