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); }
private void addProfileButton_Click(object sender, EventArgs e) { var form = new UpsertProfileExtended(new Profile(), _audioDeviceLister.PlaybackDevices, _audioDeviceLister.RecordingDevices, this); form.Show(this); }