90 |
int value = (int)flags; |
int value = (int)flags; |
91 |
|
|
92 |
CheckBox chkloggerflags = new CheckBox(); |
CheckBox chkloggerflags = new CheckBox(); |
93 |
|
chkloggerflags.Font = this.Font; |
94 |
chkloggerflags.Name = name; |
chkloggerflags.Name = name; |
95 |
chkloggerflags.Text = name; |
chkloggerflags.Text = name; |
96 |
chkloggerflags.Tag = value; |
chkloggerflags.Tag = value; |
97 |
|
Graphics g = chkloggerflags.CreateGraphics(); |
98 |
|
|
99 |
|
Size size = g.MeasureString(chkloggerflags.Text, chkloggerflags.Font).ToSize(); |
100 |
|
chkloggerflags.Width = size.Width + 25; |
101 |
|
|
102 |
grpLoggingFlags_flow.Controls.Add(chkloggerflags); |
grpLoggingFlags_flow.Controls.Add(chkloggerflags); |
103 |
logger.Debug.WriteLine("\tAdding logger flag: {0} value: 0x{1:x4}", name, value); |
logger.Debug.WriteLine("\tAdding logger flag: {0} value: 0x{1:x4}", name, value); |
104 |
|
|