private void txtruta_Click(object sender, EventArgs e) { cofd = new CommonOpenFileDialog(); cofd.InitialDirectory = @"C:\"; cofd.IsFolderPicker = true; if (cofd.ShowDialog() == CommonFileDialogResult.Ok && !string.IsNullOrEmpty(cofd.FileName)) { trackFile = cofd.FileName; txtruta.Text = Path.GetFileName(cofd.FileName); Respaldo bc = new Respaldo(); bc.Focus(); } }
private void respaldoToolStripMenuItem_Click(object sender, EventArgs e) { Respaldo rs = new Respaldo(); rs.ShowDialog(); }