private void SaveGroup_Click(object sender, RoutedEventArgs e) { try { if (groupPath != "") { runtimeConfig.SaveConfig(groupPath); } else { SaveAsGroup_Click(null, null); } } catch (Exception exception) { MessageBox.Show(exception.Message, "Возникла ошибка", MessageBoxButton.OK, MessageBoxImage.Error); } }