private void ButtonSort_Click(object sender, RoutedEventArgs e) { FilteredSortingAttibutes = AttributesBindingInstance.GetSelected(); XElement xe = XElement.Load(TempSourceFilePath); SortElement(xe); xe.Save(TempTargetFilePath); WebBrowserAfter.NavigateSafely(TempTargetFilePath); }
private void ButtonSort_Click(object sender, RoutedEventArgs e) { FilteredSortingAttibutes = AttributesBindingInstance.GetSelected(); bool sortAttributes = CheckBoxSortAttributes.IsChecked.Value; bool sortBySpecificAttributes = CheckBoxSortBySpecificAttributes.IsChecked.Value; XmlSorterLib.Sorter.SortElementHelper(TempSourceFilePath, TempTargetFilePath, sortAttributes, sortBySpecificAttributes, FilteredSortingAttibutes); WebBrowserAfter.NavigateSafely(TempTargetFilePath); }