public void myFunc() { MainWindow window = new MainWindow(); window.ShowDialog(); }
static void Main(string[] args) { MainWindow window = new MainWindow(); window.ShowDialog(); }