private void CurveControl_Load(object sender, EventArgs e) { ISite site = (ParentForm != null)? ParentForm.Site: null; commandHistory = CommandHistory.EnsureHasService(site); commandHistory.Changed += new EventHandler(commandHistory_Changed); }
private void CurveEditor_Load(object sender, EventArgs e) { commandHistory = CommandHistory.EnsureHasService(Site); }