示例#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);
        }