/// <summary>
        /// Handles the step onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected Task ClickHandler()
        {
            Clicked?.Invoke();
            ParentSteps?.SelectStep(Name);

            return(Task.CompletedTask);
        }
Exemple #2
0
        /// <inheritdoc/>
        protected override void OnInitialized()
        {
            ParentSteps?.NotifyStepInitialized(Name);

            ParentStepsContent?.NotifyStepPanelInitialized(Name);

            base.OnInitialized();
        }
Exemple #3
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                ParentSteps?.NotifyStepRemoved(Name);
            }

            base.Dispose(disposing);
        }
Exemple #4
0
        /// <summary>
        /// Handles the step onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected async Task ClickHandler()
        {
            await Clicked.InvokeAsync();

            if (ParentSteps != null)
            {
                await ParentSteps.SelectStep(Name);
            }
        }
Exemple #5
0
        protected override void OnInitialized()
        {
            if (ParentSteps != null)
            {
                ParentSteps.NotifyStepInitialized(Name);
            }

            base.OnInitialized();
        }
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (ParentStepsState != null)
                {
                    ParentSteps.NotifyStepRemoved(Name);
                }
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (ParentSteps != null)
                {
                    ParentSteps.NotifyStepRemoved(Name);
                }

                if (ParentStepsContent != null)
                {
                    ParentStepsContent.NotifyStepPanelRemoved(Name);
                }
            }

            base.Dispose(disposing);
        }