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

            aboutWindow.ShowDialog();
        }
Example #2
0
        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);
            }
        }