protected override void OnAddTool(DrawingTool tool) { base.OnAddTool(tool); if (tool.Id > 0 && tool.Id <= RuntimeValues.Length) { tool.RuntimeValue = RuntimeValues[tool.Id - 1]; } tool.RuntimeInitialize(this); }