private void EndTransaction(object obj, System.ComponentModel.Design.DesignerTransaction tran, object oldValue, object newValue, bool commit)
{
if (tran == null)
{
this.OnValueChanged(obj, new PropertyChangedEventArgs(this.Name));
return;
}
if (commit)
{
IComponent component = obj as IComponent;
System.ComponentModel.Design.IComponentChangeService componentChangeService = (System.ComponentModel.Design.IComponentChangeService)component.Site.GetService(typeof(System.ComponentModel.Design.IComponentChangeService));
if (componentChangeService != null)
{
componentChangeService.OnComponentChanged(component, this, oldValue, newValue);
}
tran.Commit();
this.OnValueChanged(obj, new PropertyChangedEventArgs(this.Name));
}
else
{
tran.Cancel();
}
}