Ejemplo n.º 1
0
        private void ButtonSort_Click(object sender, RoutedEventArgs e)
        {
            FilteredSortingAttibutes = AttributesBindingInstance.GetSelected();
            XElement xe = XElement.Load(TempSourceFilePath);

            SortElement(xe);
            xe.Save(TempTargetFilePath);
            WebBrowserAfter.NavigateSafely(TempTargetFilePath);
        }
Ejemplo n.º 2
0
        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);
        }