Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }