Beispiel #1
0
 private void btnImport_Click(object sender, EventArgs e)
 {
     using (var frm = new frmPatternImport())
     {
         frm.CodeText = patternTable.CodeText;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             patternTable.CodeText = frm.CodeText;
         }
     }
 }
Beispiel #2
0
 private void CtxProjPatternAdd_Click(object sender, EventArgs e)
 {
     using (var frm = new frmPatternImport())
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             frm.Pattern.Group = SelectedGroup;
             SelectedGroup.Add(frm.Pattern);
         }
     }
 }