private void AddFoldersButtonClick(object sender, EventArgs e) { var dlg = new FolderBrowserDialog(); dlg.Description = "Select a root folder to start processing fat folders."; var result = dlg.ShowDialog(this); if (result == DialogResult.OK && !string.IsNullOrEmpty(dlg.SelectedPath) && Directory.Exists(dlg.SelectedPath)) { var processingDialog = new ProcessingDialog(dlg.SelectedPath, _result); processingDialog.ShowDialog(this); FoldersListView.VirtualListSize = _result.Count; TotalSizeValueLabel.Text = Utils.FormatSize(_result.TotalSize); } }
private void AddFoldersButtonClick(object sender, EventArgs e) { var dlg = new FolderBrowserDialog(); dlg.Description = "Select a root folder to start processing fat folders."; var result = dlg.ShowDialog(this); if (result == DialogResult.OK && !string.IsNullOrEmpty(dlg.SelectedPath) && Directory.Exists(dlg.SelectedPath)) { var processingDialog = new ProcessingDialog(dlg.SelectedPath, _result); processingDialog.ShowDialog(this); FoldersListView.VirtualListSize = _result.Count; TotalSizeValueLabel.Text = Utils.FormatSize(_result.TotalSize); } }