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);
        }
Ejemplo n.º 3
0
 private void ButtonSourceBrowse_Click(object sender, RoutedEventArgs e)
 {
     if (ShowOpenDialog())
     {
         TextBlockSouurcePath.Text = OpenFileDialogInstance.FileName;
         OriginalSourceFilePath    = OpenFileDialogInstance.FileName;
         TempSourceFilePath        = IOPath.Combine(IOPath.GetTempPath(), "Source.xml");
         TempTargetFilePath        = IOPath.Combine(IOPath.GetTempPath(), "Target.xml");
         MaintainControlsAvailability();
         ClearRigthBrowser = true;
         WebBrowserAfter.NavigateToString("<HTML></HTML>");
         new Thread(ReadAttributes).Start();
     }
 }