HamBook – Diff between revs 16 and 17

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 16 Rev 17
Line 238... Line 238...
238 { 238 {
239 Log.Error($"{Resources.Could_not_write_memory_bank}"); 239 Log.Error($"{Resources.Could_not_write_memory_bank}");
Line 240... Line 240...
240   240  
241 toolStripStatusLabel1.Text = 241 toolStripStatusLabel1.Text =
242 $"{Resources.Could_not_write_memory_bank} {rowProgress.Index + 1}"; 242 $"{Resources.Could_not_write_memory_bank} {rowProgress.Index + 1}";
243 toolStripProgressBar1.Value = rowProgress.Index + 1; 243 toolStripProgressBar1.Increment(1);
Line 244... Line 244...
244 statusStrip1.Update(); 244 statusStrip1.Update();
245   245  
Line 246... Line 246...
246 return; 246 return;
247 } 247 }
248   248  
249 toolStripStatusLabel1.Text = 249 toolStripStatusLabel1.Text =
250 $"{Resources.Wrote_memory_bank} {rowProgress.Index + 1}"; 250 $"{Resources.Wrote_memory_bank} {rowProgress.Index + 1}";
251 toolStripProgressBar1.Value = rowProgress.Index + 1; 251 toolStripProgressBar1.Increment(1);
252 statusStrip1.Update(); 252 statusStrip1.Update();
Line 253... Line 253...
253 break; 253 break;
254 case DataGridViewRowProgressFailure rowProgressFailure: 254 case DataGridViewRowProgressFailure rowProgressFailure:
255 Log.Error(rowProgressFailure.Exception, $"{Resources.Could_not_write_memory_bank}"); 255 Log.Error(rowProgressFailure.Exception, $"{Resources.Could_not_write_memory_bank}");
256   256  
257 toolStripStatusLabel1.Text = 257 toolStripStatusLabel1.Text =
258 $"{Resources.Could_not_write_memory_bank} {rowProgress.Index + 1}"; 258 $"{Resources.Could_not_write_memory_bank} {rowProgress.Index + 1}";
259 toolStripProgressBar1.Value = rowProgress.Index + 1; 259 toolStripProgressBar1.Increment(1);
Line 303... Line 303...
303 break; 303 break;
304 } 304 }
Line 305... Line 305...
305   305  
306 toolStripStatusLabel1.Text = 306 toolStripStatusLabel1.Text =
307 $"{Resources.Read_memory_bank} {rowProgress.Index + 1}"; 307 $"{Resources.Read_memory_bank} {rowProgress.Index + 1}";
Line 308... Line 308...
308 toolStripProgressBar1.Value = rowProgress.Index + 1; 308 toolStripProgressBar1.Increment(1);
309   309  
Line 310... Line 310...
310 statusStrip1.Update(); 310 statusStrip1.Update();
Line 365... Line 365...
365 var clar = bool.Parse($"{rows[i].Cells["ClarColumn"].Value}"); 365 var clar = bool.Parse($"{rows[i].Cells["ClarColumn"].Value}");
366 var radioMode = new MemoryRadioMode($"{rows[i].Cells["ModeColumn"].Value}"); 366 var radioMode = new MemoryRadioMode($"{rows[i].Cells["ModeColumn"].Value}");
367 var ctcssMode = new CtcssMode($"{rows[i].Cells["CtcssColumn"].Value}"); 367 var ctcssMode = new CtcssMode($"{rows[i].Cells["CtcssColumn"].Value}");
368 var phase = new RadioPhase($"{rows[i].Cells["PhaseColumn"].Value}"); 368 var phase = new RadioPhase($"{rows[i].Cells["PhaseColumn"].Value}");
369 var tag = bool.Parse($"{rows[i].Cells["TagColumn"].Value}"); 369 var tag = bool.Parse($"{rows[i].Cells["TagColumn"].Value}");
370 var text = $"{rows[i].Cells["TextColumn"].Value}"; 370 var text = $"{rows[i].Cells["TextColumn"].Value, -12}";
Line 371... Line 371...
371   371  
372 var memoryChannel = new MemoryChannel 372 var memoryChannel = new MemoryChannel
373 { 373 {
374 CurrentLocation = currentLocation, 374 CurrentLocation = currentLocation,