Beispiel #1
0
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (PromptForSave())
     {
         using (OpenFileDialog dlgOpen = new OpenFileDialog())
         {
             dlgOpen.Title        = "Open Anonymization Script";
             dlgOpen.Filter       = "Dicom Anonymization Script (*.das)|*.das";
             dlgOpen.Multiselect  = false;
             dlgOpen.AddExtension = true;
             if (dlgOpen.ShowDialog(this) == DialogResult.OK)
             {
                 _Anonymizer = Anonymizer.Load(dlgOpen.FileName);
                 _FileName   = dlgOpen.FileName;
                 UpdateTitle();
                 _Modified = false;
                 LoadMacros(_Anonymizer.TagMacros);
             }
         }
     }
 }