Added functionality to the '...' button for the 'Default New Contents' folder option on the ProfileManager form. Added a way for the user to move all newly discovered files to their default new content location.

This commit is contained in:
Admin
2020-12-06 23:02:18 -06:00
parent 9f9fdac66a
commit 21645be4ef
4 changed files with 170 additions and 78 deletions
+12 -1
View File
@@ -44,12 +44,23 @@ namespace DataOrganizer
MachineNameTextBox.TextChanged += MachineNameTextBox_TextChanged;
FolderGroupPathTextBox.TextChanged += ToggleGroupInsertButton;
FolderGroupListView.MouseClick += FolderGroupListView_MouseClick;
SelectNewContentLocationButton.Click += SelectNewContentLocationButton_Click1;
deleteMenuItem.Click += DeleteMenuItem_Click;
PopulateProfiles();
SetupForNewProfile();
}
private void SelectNewContentLocationButton_Click1(object sender, EventArgs e)
{
var dialog = new FolderBrowserDialog() { Description = "Select the folder where new content will be placed." };
if (dialog.ShowDialog() == DialogResult.OK)
{
NewContentLocationTextBox.Text = dialog.SelectedPath;
}
}
private void FolderGroupListView_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
@@ -132,7 +143,7 @@ namespace DataOrganizer
if (!IsUpdating)
{
var folders = new List<DB.FolderGroup>();
//TODO: crash
foreach(ListViewItem node in FolderGroupListView.Items)
{
folders.Add(FolderGroups[node.Text]);