HamBook – Diff between revs 12 and 13

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 12 Rev 13
Line 88... Line 88...
88 comboBox10.Items.Add(capabilities.ProductName); 88 comboBox10.Items.Add(capabilities.ProductName);
89 } 89 }
Line 90... Line 90...
90 90
91 foreach(var notificationState in _configuration.Notifications.State) 91 foreach(var notificationState in _configuration.Notifications.State)
-   92 {
-   93 switch(notificationState.Type)
-   94 {
-   95 case NotificationType.None:
-   96 continue;
-   97 }
92 { 98  
Line 93... Line 99...
93 var index = dataGridView1.Rows.Add(); 99 var index = dataGridView1.Rows.Add();
94   100  
Line 95... Line 101...
95 var nameTextBox = (DataGridViewTextBoxCell)dataGridView1.Rows[index].Cells["NameColumn"]; 101 var nameTextBox = (DataGridViewTextBoxCell)dataGridView1.Rows[index].Cells["DescriptionColumn"];
96 nameTextBox.Value = notificationState.Type.GetType().GetCustomAttribute<DescriptionAttribute>().Description; 102 nameTextBox.Value = Utilities.Miscellaneous.GetDescriptionFromEnumValue(notificationState.Type);
Line 97... Line 103...
97   103  
Line 192... Line 198...
192 private void ProcessEnable(DataGridViewRow dataGridViewRow) 198 private void ProcessEnable(DataGridViewRow dataGridViewRow)
193 { 199 {
194 var enableCheckBoxCell = 200 var enableCheckBoxCell =
195 (DataGridViewCheckBoxCell)dataGridViewRow.Cells["EnableColumn"]; 201 (DataGridViewCheckBoxCell)dataGridViewRow.Cells["EnableColumn"];
Line 196... Line -...
196   -  
197 var dataGridViewNameCell = (DataGridViewTextBoxCell)dataGridViewRow.Cells["NameColumn"]; -  
198   -  
199 var name = dataGridViewNameCell.Value; -  
200   202  
201 foreach(var notificationState in _configuration.Notifications.State) 203 foreach(var notificationState in _configuration.Notifications.State)
202 { 204 {
203 switch (notificationState.Type) 205 switch (notificationState.Type)
204 { 206 {