public static void Open(Form parent) { using (OpenFileDialog openFileDialog = new OpenFileDialog()) { openFileDialog.Filter = "Adorned Image (*.ati)|*.ati"; if (openFileDialog.ShowDialog() == DialogResult.OK) { PasteUpForm form = new PasteUpForm(); form.PasteUpControl.Open(openFileDialog.FileName); form.MdiParent = parent; form.Show(); } } }
public static void New(Form parent) { PasteUpForm form = new PasteUpForm(); form.MdiParent = parent; form.Show(); }