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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user