HamBook – Diff between revs 57 and 58
?pathlinks?
Rev 57 | Rev 58 | |||
---|---|---|---|---|
Line 249... | Line 249... | |||
249 | |
249 | |
|
250 | private void aboutToolStripMenuItem_Click(object sender, EventArgs e) |
250 | private void aboutToolStripMenuItem_Click(object sender, EventArgs e) |
|
251 | { |
251 | { |
|
Line 252... | Line 252... | |||
252 | if (_aboutForm != null) return; |
252 | if (_aboutForm != null) return; |
|
253 | |
253 | |
|
254 | _aboutForm = new AboutForm(_cancellationToken); |
254 | _aboutForm = new AboutForm(); |
|
255 | _aboutForm.Closing += AboutForm_Closing; |
255 | _aboutForm.Closing += AboutForm_Closing; |
|
Line 256... | Line 256... | |||
256 | _aboutForm.Show(); |
256 | _aboutForm.Show(); |
|
Line 304... | Line 304... | |||
304 | |
304 | |
|
Line 305... | Line 305... | |||
305 | _catAssemblies = InitializeAssemblies(_serialPort); |
305 | _catAssemblies = InitializeAssemblies(_serialPort); |
|
306 | |
306 | |
|
307 | try |
307 | try |
|
308 | { |
308 | { |
|
309 | switch (await _catAssemblies.CatReadAsync<PowerState>("PS", new object[] { }, |
309 | if (await _catAssemblies.CatReadAsync<PowerState>("PS", new object[] { }, |
|
310 | _cancellationToken)) |
- | ||
311 | { |
310 | _cancellationToken) == PowerState.ON) |
|
312 | case PowerState.ON: |
311 | { |
|
313 | Log.Information(Resources.Attempting_to_initialize_radio); |
312 | Log.Information(Resources.Attempting_to_initialize_radio); |
|
314 | if (!await InitializeRadio()) return; |
- | ||
315 | Log.Information(Resources.Initializing_GUI); |
313 | if (!await InitializeRadio()) return; |
|
316 | break; |
314 | Log.Information(Resources.Initializing_GUI); |
|
317 | } |
315 | } |
|
318 | } |
316 | } |
|
319 | catch (Exception exception) |
317 | catch (Exception exception) |