private void EditProfile()
        {
            if (string.IsNullOrWhiteSpace(CameraProfile?.Id))
            {
                return;
            }
            var dlg = new CameraProfilerView {
                DataContext = new CameraProfilerViewModel(CameraProfile)
            };

            if (dlg.ShowDialog() == true)
            {
                CameraProfile.Save();
                RaisePropertyChanged(() => CameraProfile);
            }
        }
        private void AddProfile()
        {
            var profile = new CameraProfile(SelectedCameraDevice)
            {
                Name = "CameraProfile"
            };
            var dlg = new CameraProfilerView {
                DataContext = new CameraProfilerViewModel(profile)
            };

            if (dlg.ShowDialog() == true)
            {
                profile.Save();
                CameraProfiles.Add(profile);
                CameraProfile = profile;
            }
        }