コード例 #1
0
ファイル: UndoManager.cs プロジェクト: ChrisMoreton/Test3
		internal UndoManager(FlowChart document)
		{
			this.document = document;

			defaultCmdContext = new CommandContext(document);
			history = new CommandHistory();

			resetContext();

			// disable undo by default, it might be too expensive
			// in memory and CPU cycles
			undoEnabled = false;
		}
コード例 #2
0
ファイル: Command.cs プロジェクト: ChrisMoreton/Test3
		internal void setContext(CommandContext cmdContext)
		{
			this.cmdContext = cmdContext;
			foreach (Command cmd in subCommands)
				cmd.setContext(cmdContext);
		}