示例#1
0
        void NewBoard(object parameter)
        {
            NewBoardDelegate func        = new NewBoardDelegate(generateNewBoard);
            NewBoardWindow   aboutWindow = new NewBoardWindow(func);

            aboutWindow.ShowDialog();
        }
 public NewBoardWindow(NewBoardDelegate func)
 {
     InitializeComponent();
     this.func        = func;
     model            = new NewBoardModel();
     this.DataContext = model;
 }