/// <summary> /// Save /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SaveMenuItem_Click(object sender, RoutedEventArgs e) { try { fileService.SaveDataTableToExcel(tableManager.CreateLoadedTableFromLibs()); MessageBox.Show("Успешно"); } catch (NullReferenceException) { MessageBox.Show("Нельзя сохранить то, что не открыто"); } }