public static void Open(string dir, Window owner) { var f = new FolderSizeWindow(); f.InitializeComponent(); f.LoadFolderSizeItems(dir); f.Owner = owner; f.Show(); }
private void btnSizeChart_Click(object sender, RoutedEventArgs e) { FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName); fsw.Owner = this; fsw.Show(); }
private void btnFSizeChart_Click(object sender, RoutedEventArgs e) { if (Explorer.SelectedItems.Count > 0) { if ((Explorer.SelectedItems[0].IsFolder || Explorer.SelectedItems[0].IsDrive) && Explorer.SelectedItems[0].IsFileSystemObject) { FolderSizeWindow fsw = new FolderSizeWindow(Explorer.SelectedItems[0].ParsingName); fsw.Owner = this; fsw.Show(); } else { if ((Explorer.NavigationLog.CurrentLocation.IsFolder || Explorer.NavigationLog.CurrentLocation.IsDrive) && Explorer.NavigationLog.CurrentLocation.IsFileSystemObject) { FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName); fsw.Owner = this; fsw.Show(); } } } else { if ((Explorer.NavigationLog.CurrentLocation.IsFolder || Explorer.NavigationLog.CurrentLocation.IsDrive) && Explorer.NavigationLog.CurrentLocation.IsFileSystemObject) { FolderSizeWindow fsw = new FolderSizeWindow(Explorer.NavigationLog.CurrentLocation.ParsingName); fsw.Owner = this; fsw.Show(); } } }
public static void Open(string dir, Window owner) { var f = new FolderSizeWindow(); f.InitializeComponent(); f.LoadFolderSizeItems(dir); f.Owner = owner; f.Show(); }