internal void OnTopicBeforeCollapse(TopicCancelEventArgs e) { if (TopicBeforeCollapse != null) { TopicBeforeCollapse(this, e); } }
internal void OnTopicBeforeExpand(TopicCancelEventArgs e) { if (TopicBeforeExpand != null) { TopicBeforeExpand(this, e); } }
void OnBeforeCollapse(CancelEventArgs e) { if (BeforeCollapse != null) { BeforeCollapse(this, e); } if (!e.Cancel && MindMap != null) { TopicCancelEventArgs ce = new TopicCancelEventArgs(this); MindMap.OnTopicBeforeCollapse(ce); e.Cancel = ce.Cancel; } }