protected void InitObjects() { BeforeInit?.Invoke(); for (int i = 0; i < PhysicsObjects.Count; i++) { PhysicsObjects[i].Init(); } AfterInit?.Invoke(); }
/// <summary> /// Initialize the component /// </summary> /// <returns></returns> protected async override Task OnInitializedAsync() { await base.OnInitializedAsync(); if (string.IsNullOrWhiteSpace(EmbeddedStylePath)) { throw new ArgumentException(nameof(EmbeddedStylePath)); } await State.InitializeComponent(this, EmbeddedStylePath, Parent); IsComplete = true; if (AfterInit.HasDelegate) { await AfterInit.InvokeAsync(null); } }
public void Init() { mRemoveMinNum = GridOperate.ShouldComboLineMax; AfterInit?.Invoke(); }