HamBook – Diff between revs 14 and 15

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 14 Rev 15
Line 197... Line 197...
197 ProcessEnable(dataGridView.Rows[e.RowIndex]); 197 ProcessEnable(dataGridView.Rows[e.RowIndex]);
198 break; 198 break;
199 } 199 }
200 } 200 }
Line 201... Line -...
201   -  
202 private void ProcessEnable(DataGridViewRow dataGridViewRow) -  
203 { -  
204 var enableCheckBoxCell = -  
205 (DataGridViewCheckBoxCell)dataGridViewRow.Cells["EnableColumn"]; -  
206   -  
207 foreach(var notificationState in _configuration.Notifications.State) -  
208 { -  
209 switch (notificationState.Type) -  
210 { -  
211 case NotificationType.SignalScanDetect: -  
212 notificationState.Enabled = (bool)enableCheckBoxCell.Value; -  
213 break; -  
214 } -  
215 } -  
216 } -  
217   201  
218 private void DataGridView1_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) 202 private void DataGridView1_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e)
219 { 203 {
Line 220... Line 204...
220 var dataGridView = (DataGridView)sender; 204 var dataGridView = (DataGridView)sender;
Line 244... Line 228...
244 private void DataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e) 228 private void DataGridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
245 { 229 {
246 // Do not allow errors. 230 // Do not allow errors.
247 } 231 }
Line -... Line 232...
-   232  
-   233 private void ProcessEnable(DataGridViewRow dataGridViewRow)
-   234 {
-   235 var enableCheckBoxCell =
-   236 (DataGridViewCheckBoxCell)dataGridViewRow.Cells["EnableColumn"];
-   237  
-   238 foreach (var notificationState in _configuration.Notifications.State)
-   239 {
-   240 switch (notificationState.Type)
-   241 {
-   242 case NotificationType.SignalScanDetect:
-   243 notificationState.Enabled = (bool)enableCheckBoxCell.Value;
-   244 break;
-   245 }
-   246 }
-   247 }
248   248  
249 } 249 }