private void CreateSolution(object sender, EventArgs e) { var appDialog = new AppDialog { Title = "Create a new Solution" }; var result = WindowHelper.ShowModal(appDialog); if (result == DialogResult.OK) { CreateSolution(appDialog.ViewModel); } }