private void OnSave(object sender, RoutedEventArgs e) { SetLoadFolder(); validationData.Clear(); if (!GetValidationFlowFromTree(validationData.flow, Flow_TreeViewItem)) { validationData.flow = null; } else { validationData.SaveFlowData(sLoadFolder); } convertionTreeListItem.Clear(); if (!GetValidationConvertionTreeItemFromTree(convertionTreeListItem)) { convertionTreeListItem = null; } else { ValidationData.SaveConvertionTreeListItemData(sLoadFolder, convertionTreeListItem); validationData.bindingContainer = CreateBindingContainer(); validationData.SaveBindingContainerData(sLoadFolder); } }