public theMainWindow() { this.InitializeComponent(); //undoButton.Command = System.Windows.Input.ApplicationCommands.Undo; //undoButton.IsEnabled = true; codemanager = new CodeManager(); codeEditor = new CodeEditor(); this.srcList.ItemsSource = fileList; this.srcList.DisplayMemberPath = "Name"; this.srcList.SelectedValuePath = "ID"; // 在此点之下插入创建对象所需的代码。 }
public void set(ref RichTextBox _richTextBox, ref CodeEditor _codeEditor) { outRichTextBox = _richTextBox; codeEditor = _codeEditor; }