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 InsertCodeCommand(CodeManager setCodeManager) { this.codeManager = setCodeManager; //this.index = setIndex; //this.ch = setCh; }
public CodeEditor() { codemanager = new CodeManager(); }