コード例 #1
0
ファイル: Settings.cs プロジェクト: weblate/SoundSwitch
        private void editProfileButton_Click(object sender, EventArgs e)
        {
            if (profilesListView.SelectedItems.Count <= 0)
            {
                return;
            }

            var profile = (Profile)profilesListView.SelectedItems[0].Tag;
            var form    = new UpsertProfileExtended(profile, _audioDeviceLister.PlaybackDevices, _audioDeviceLister.RecordingDevices, this, true);

            form.Show(this);
        }
コード例 #2
0
ファイル: Settings.cs プロジェクト: weblate/SoundSwitch
        private void addProfileButton_Click(object sender, EventArgs e)
        {
            var form = new UpsertProfileExtended(new Profile(), _audioDeviceLister.PlaybackDevices, _audioDeviceLister.RecordingDevices, this);

            form.Show(this);
        }