Esempio n. 1
0
 protected void InitObjects()
 {
     BeforeInit?.Invoke();
     for (int i = 0; i < PhysicsObjects.Count; i++)
     {
         PhysicsObjects[i].Init();
     }
     AfterInit?.Invoke();
 }
Esempio n. 2
0
        /// <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);
            }
        }
Esempio n. 3
0
        public void Init()
        {
            mRemoveMinNum = GridOperate.ShouldComboLineMax;

            AfterInit?.Invoke();
        }