void NewBoard(object parameter) { NewBoardDelegate func = new NewBoardDelegate(generateNewBoard); NewBoardWindow aboutWindow = new NewBoardWindow(func); aboutWindow.ShowDialog(); }
private void NewProCommand_Executed(object sender, ExecutedRoutedEventArgs e) { //打开新建对话框 NewBoardWindow nbw = new NewBoardWindow(); this.Logout("Opened " + nbw.Title); if (nbw.ShowDialog() == true) { CreateNewBoardDesignerPage(nbw.Result, nbw.FileName, null); } }