1
Fork 0

stores value in class, and applies folder path to textbox

This commit is contained in:
Jake Howard 2014-11-16 17:20:18 +00:00
parent 576d9067cd
commit dc9af06bbf

View file

@ -13,11 +13,12 @@ namespace Saviour_Backup_System
{
public partial class addBackupWizard : Form
{
private string folderPath = "";
private string defaultText;
public addBackupWizard()
{
InitializeComponent();
populateDropdown();
populateDropdown();
defaultText = introTextBox.Text; //stores it so we can append to the end at runtime
}
private void directoryBrowseButton_Click(object sender, EventArgs e)
@ -25,7 +26,7 @@ namespace Saviour_Backup_System
FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
{
folderPath = folderBrowserDialog.SelectedPath;
folderPath.Text = folderBrowserDialog.SelectedPath;
}
folderBrowserDialog.Dispose(); //memory management
}