public void SplitFile(object sender, RoutedEventArgs e) { Item document = GetOneSelected(); SplitFile dialog = new SplitFile(); dialog.ShowDialog(); FileSystem.Split(File.ReadAllText(document.File.FullName, Encoding.UTF8), dialog.Size, document); NotifyObserves("Split"); }
public void SplitFile(object sender, RoutedEventArgs e) { Item document = GetOneSelected(); SplitFile dialog = new SplitFile(); dialog.ShowDialog(); FileSystem.Split(File.ReadAllText(document.File.FullName, Encoding.UTF8), dialog.Size, document); NotifyObserves("Split"); }
public void SplitFile(object sender, RoutedEventArgs e) { Item file = GetOneSelected(); if (file.File == null) return; SplitFile dialog = new SplitFile(); dialog.ShowDialog(); if (dialog.Size > 0) { FileSystem.Split(File.ReadAllText(file.File.FullName, Encoding.UTF8), dialog.Size, file); NotifyObserves("Split"); } }