private void AboutExecute() { About.About about = new About.About(); about.DataContext = new AboutInfo(); about.ShowDialog(); //AboutDialog.ShowWindow(new AboutInfo()); }
private void aboutToolStripMenuItem1_Click(object sender, EventArgs e) { var about = new About.About { StartPosition = FormStartPosition.CenterParent }; if (about.ShowDialog() == DialogResult.OK) { about.Dispose(); } }