void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.SoundboardButton_7 = ((Numboard.NumboardButton)(target));
     return;
     case 2:
     
     #line 13 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 14 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 15 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 16 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 17 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 7:
     this.SoundboardButton_4 = ((Numboard.NumboardButton)(target));
     return;
     case 8:
     
     #line 24 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 25 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 26 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 27 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 28 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 13:
     this.SoundboardButton_1 = ((Numboard.NumboardButton)(target));
     return;
     case 14:
     
     #line 35 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 36 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 37 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 38 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 39 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 19:
     this.SoundboardButton_8 = ((Numboard.NumboardButton)(target));
     return;
     case 20:
     
     #line 46 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 21:
     
     #line 47 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 22:
     
     #line 48 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 23:
     
     #line 49 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 24:
     
     #line 50 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 25:
     this.SoundboardButton_5 = ((Numboard.NumboardButton)(target));
     return;
     case 26:
     
     #line 57 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 27:
     
     #line 58 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 28:
     
     #line 59 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 29:
     
     #line 60 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 30:
     
     #line 61 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 31:
     this.SoundboardButton_2 = ((Numboard.NumboardButton)(target));
     return;
     case 32:
     
     #line 68 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 33:
     
     #line 69 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 34:
     
     #line 70 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 35:
     
     #line 71 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 36:
     
     #line 72 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 37:
     this.SoundboardButton_9 = ((Numboard.NumboardButton)(target));
     return;
     case 38:
     
     #line 79 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 39:
     
     #line 80 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 40:
     
     #line 81 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 41:
     
     #line 82 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 42:
     
     #line 83 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 43:
     this.SoundboardButton_6 = ((Numboard.NumboardButton)(target));
     return;
     case 44:
     
     #line 90 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 45:
     
     #line 91 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 46:
     
     #line 92 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 47:
     
     #line 93 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 48:
     
     #line 94 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 49:
     this.SoundboardButton_3 = ((Numboard.NumboardButton)(target));
     return;
     case 50:
     
     #line 101 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 51:
     
     #line 102 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 52:
     
     #line 103 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 53:
     
     #line 104 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 54:
     
     #line 105 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 55:
     this.SoundboardButton_0 = ((Numboard.NumboardButton)(target));
     return;
     case 56:
     this.SoundboardButton_Period = ((Numboard.NumboardButton)(target));
     return;
     case 57:
     this.SoundboardButton_Divide = ((Numboard.NumboardButton)(target));
     return;
     case 58:
     
     #line 114 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 59:
     
     #line 115 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 60:
     
     #line 116 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 61:
     
     #line 117 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 62:
     
     #line 118 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 63:
     this.SoundboardButton_Multiply = ((Numboard.NumboardButton)(target));
     return;
     case 64:
     
     #line 125 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 65:
     
     #line 126 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 66:
     
     #line 127 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 67:
     
     #line 128 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 68:
     
     #line 129 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 69:
     this.SoundboardButton_Subtract = ((Numboard.NumboardButton)(target));
     return;
     case 70:
     
     #line 136 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 71:
     
     #line 137 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 72:
     
     #line 138 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 73:
     
     #line 139 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 74:
     
     #line 140 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 75:
     this.SoundboardButton_Num_Lock = ((Numboard.NumboardButton)(target));
     return;
     case 76:
     this.SoundboardButton_Add = ((Numboard.NumboardButton)(target));
     return;
     case 77:
     
     #line 148 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 78:
     
     #line 149 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 79:
     
     #line 150 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 80:
     
     #line 151 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 81:
     
     #line 152 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SetVolume);
     
     #line default
     #line hidden
     return;
     case 82:
     this.SoundboardButton_Enter = ((Numboard.NumboardButton)(target));
     return;
     case 83:
     
     #line 162 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.New);
     
     #line default
     #line hidden
     return;
     case 84:
     
     #line 163 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Load);
     
     #line default
     #line hidden
     return;
     case 85:
     
     #line 164 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Save);
     
     #line default
     #line hidden
     return;
     case 86:
     
     #line 165 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveAs);
     
     #line default
     #line hidden
     return;
     case 87:
     this.PrimaryOutputDevice = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 88:
     this.SecondaryOutputDevice = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 89:
     this.MasterVolumeSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 170 "..\..\MainWindow.xaml"
     this.MasterVolumeSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.MasterVolumeSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 90:
     this.FileList = ((System.Windows.Controls.ListBox)(target));
     
     #line 171 "..\..\MainWindow.xaml"
     this.FileList.PreviewMouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.FileList_PreviewMouseDoubleClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Esempio n. 2
0
		public HotKey(ModifierKeys modifierKeys, Keys key, Window window, NumboardButton button)
			: this(modifierKeys, key, new WindowInteropHelper(window))
		{
			Button = button;
		}
		private void StopStream(NumboardButton button)
		{
			PlayingStreams.Where(ps => ps.Button.Equals(button)).ToList().ForEach(ps => ps.Dispose());
			PlayingStreams.RemoveAll(ps => ps.Button.Equals(button));
		}