private void OnAutoSizeChanged(EventArgs e) { TextureValid = false; if (AutoSizeChanged != null) { AutoSizeChanged.Invoke(this, e); } }
/// <summary> /// Raises the AutoSizeChanged event. /// </summary> /// <param name="e">An EventArgs containing the event data.</param> protected override void OnAutoSizeChanged(EventArgs e) { AutoSizeChanged?.Invoke(this, e); base.OnAutoSizeChanged(e); }