HamBook – Diff between revs 31 and 32

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 31 Rev 32
Line 477... Line 477...
477 { 477 {
478 if (await _catAssemblies.CatSetAsync<int, bool>("FB", new object[] { frequency }, _cancellationToken)) 478 if (await _catAssemblies.CatSetAsync<int, bool>("FB", new object[] { frequency }, _cancellationToken))
479 { 479 {
480 toolStripComboBox.Text = $"{frequency}"; 480 toolStripComboBox.Text = $"{frequency}";
Line -... Line 481...
-   481  
-   482 if (Configuration.Navigation.MouseScrollSound)
481   483 {
-   484 soundPlayer.Play();
482 soundPlayer.Play(); 485 }
483 } 486 }
484 } 487 }
485 } 488 }
486 catch (Exception exception) 489 catch (Exception exception)
Line 505... Line 508...
505 { 508 {
506 if (await _catAssemblies.CatSetAsync<int, bool>("FB", new object[] { frequency }, _cancellationToken)) 509 if (await _catAssemblies.CatSetAsync<int, bool>("FB", new object[] { frequency }, _cancellationToken))
507 { 510 {
508 e.Handled = true; 511 e.Handled = true;
Line -... Line 512...
-   512  
-   513 if (Configuration.Navigation.MouseScrollSound)
509   514 {
-   515 soundPlayer.Play();
510 soundPlayer.Play(); 516 }
511 } 517 }
512 } 518 }
513 } 519 }
514 catch (Exception exception) 520 catch (Exception exception)
Line 1038... Line 1044...
1038 { 1044 {
1039 if (await _catAssemblies.CatSetAsync<int, bool>("FA", new object[] { frequency }, _cancellationToken)) 1045 if (await _catAssemblies.CatSetAsync<int, bool>("FA", new object[] { frequency }, _cancellationToken))
1040 { 1046 {
1041 toolStripComboBox.Text = $"{frequency}"; 1047 toolStripComboBox.Text = $"{frequency}";
Line -... Line 1048...
-   1048  
-   1049 if (Configuration.Navigation.MouseScrollSound)
1042   1050 {
-   1051 soundPlayer.Play();
1043 soundPlayer.Play(); 1052 }
1044 } 1053 }
1045 } 1054 }
1046 } 1055 }
1047 catch (Exception exception) 1056 catch (Exception exception)
Line 1054... Line 1063...
1054 private async void scrollableToolStripComboBox1_KeyPress(object sender, KeyPressEventArgs e) 1063 private async void scrollableToolStripComboBox1_KeyPress(object sender, KeyPressEventArgs e)
1055 { 1064 {
1056 switch (e.KeyChar) 1065 switch (e.KeyChar)
1057 { 1066 {
1058 case (char)Keys.Enter: 1067 case (char)Keys.Enter:
1059 e.Handled = true; -  
-   1068
Line 1060... Line 1069...
1060   1069  
Line 1061... Line 1070...
1061 var toolStripComboBox = (ScrollableToolStripComboBox)sender; 1070 var toolStripComboBox = (ScrollableToolStripComboBox)sender;
1062   1071  
Line 1066... Line 1075...
1066 { 1075 {
1067 using (var soundPlayer = new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("HamBook.Effects.pot.wav"))) 1076 using (var soundPlayer = new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("HamBook.Effects.pot.wav")))
1068 { 1077 {
1069 if (await _catAssemblies.CatSetAsync<int, bool>("FA", new object[] { frequency }, _cancellationToken)) 1078 if (await _catAssemblies.CatSetAsync<int, bool>("FA", new object[] { frequency }, _cancellationToken))
1070 { 1079 {
-   1080 e.Handled = true;
1071 1081  
-   1082 if (Configuration.Navigation.MouseScrollSound)
-   1083 {
1072 soundPlayer.Play(); 1084 soundPlayer.Play();
-   1085 }
1073 } 1086 }
1074 } 1087 }
1075 } 1088 }
1076 catch (Exception exception) 1089 catch (Exception exception)
1077 { 1090 {