コード例 #1
0
 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();
     }
 }
コード例 #2
0
        private void respaldoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Respaldo rs = new Respaldo();

            rs.ShowDialog();
        }