private void AddCategoryButton_Click(object sender, RoutedEventArgs e) { if (isDecisionClass.IsChecked == true) { AddDianoseCategory(); } else { FileAdapter.AddNewCategoryToFile(baseName, CategoryTextBox.Text, Description.Text /*, CopyPhoto(filePath)*/); FileAdapter.UpdateRules(baseName, CategoryTextBox.Text); } BaseEditor baseEditor = new BaseEditor(baseName); baseEditor.Show(); this.Close(); }