Ejemplo n.º 1
0
 private void OnAddFilesClick(object sender, EventArgs e)
 {
     using (var dlg = new OpenFileDialog()
     {
         Filter = "Patches (*.patch)|*.patch|All files|*.*",
         Multiselect = true,
     })
     {
         if (dlg.ShowDialog(this) == DialogResult.OK)
         {
             foreach (var fileName in dlg.FileNames)
             {
                 var src = new PatchFromFile(fileName);
                 AddPatchSource(src);
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void OnAddFilesClick(object sender, EventArgs e)
 {
     using(var dlg = new OpenFileDialog()
         {
             Filter = "Patches (*.patch)|*.patch|All files|*.*",
             Multiselect = true,
         })
     {
         if(dlg.ShowDialog(this) == DialogResult.OK)
         {
             foreach(var fileName in dlg.FileNames)
             {
                 var src = new PatchFromFile(fileName);
                 AddPatchSource(src);
             }
         }
     }
 }