private void CreateCopyFolder() { var addFolderDialog = new wndCreateFolder("Выберите место для копии папки у себя"); if (addFolderDialog.ShowDialog() == DialogResult.OK) { _user.UserDirectory.Path = addFolderDialog.SelectedPath; SetWatcher(); FillFolderSpace(); SetButtons(); } }
private void bCreateDir_Click(object sender, EventArgs e) { var addFolderDialog = new wndCreateFolder(); if (addFolderDialog.ShowDialog() == DialogResult.OK) { _user.UserDirectory.Path = addFolderDialog.SelectedPath; SetWatcher(); FillFolderSpace(); SetButtons(); } }