private void NewFolderButton2Click(object sender, EventArgs e) { //создание новой папки newFolder f2 = new newFolder(); f2.Owner = this; f2.ShowDialog(); if (f2.folderName != "") CreateDir(path2, f2.folderName); MessageBox.Show(path2); Refresh(listView2, path2, address2); f2.Dispose(); }
private void NewFileButton2Click(object sender, EventArgs e) { //создать новый файл newFolder f2 = new newFolder(true); f2.Owner = this; f2.ShowDialog(); if (f2.folderName != "") CreateFile(path2, f2.folderName); Refresh(listView2, path2, address2); f2.Dispose(); }