protected override void SettingsMenuCommand_Executed(object context)
        {
            string menuName = context.ToString().ToLowerInvariant();

            if (menuName.Contains("spectral"))
            {
                SpectralSettingsViewModel dialogViewModel = new SpectralSettingsViewModel(specdata);
                dialogService.ShowDialog(dialogViewModel);
            }

            base.SettingsMenuCommand_Executed(context);
        }
        protected override async void FileMenuCommand_Executed(object context)
        {
            string menuName = context.ToString().ToLowerInvariant();

            if (menuName.Contains("open") && menuName.Contains("input"))
            {
                await OpenInput();
            }

            else if (menuName.Contains("close") && menuName.Contains("input"))
            {
                CloseInput();
            }
            else if (menuName.Contains("spectral"))
            {
                SpectralSettingsViewModel dialogViewModel = new SpectralSettingsViewModel(specdata);
                dialogService.ShowDialog(dialogViewModel);
            }
            else
            {
                base.FileMenuCommand_Executed(context);
            }
        }