private void mnuFavouriteRecordingDevice_Click(object sender, EventArgs e) { string id = SelectedRecordingDevice.ID; if (mnuFavouriteRecordingDevice.Checked) { FavouriteDeviceManager.RemoveFavouriteDevice(SelectedRecordingDevice.ID); } else { FavouriteDeviceManager.AddFavouriteDevice(SelectedRecordingDevice.ID); } PostRecordingMenuClick(id); }
private void mnuFavouritePlaybackDevice_Click(object sender, EventArgs e) { string id = SelectedPlaybackDevice.ID; //if checked then we need to remove if (mnuFavouritePlaybackDevice.Checked) { FavouriteDeviceManager.RemoveFavouriteDevice(SelectedPlaybackDevice.ID); } else { FavouriteDeviceManager.AddFavouriteDevice(SelectedPlaybackDevice.ID); } PostPlaybackMenuClick(id); }
private void mnuFavouriteRecordingDevice_Click(object sender, EventArgs e) { if (SelectedRecordingDevice == null) { return; } var id = SelectedRecordingDevice.Id; if (mnuFavouriteRecordingDevice.Checked) { FavouriteDeviceManager.RemoveFavouriteDevice(SelectedRecordingDevice.Id); } else { FavouriteDeviceManager.AddFavouriteDevice(SelectedRecordingDevice.Id); } PostRecordingMenuClick(id); }