コード例 #1
0
ファイル: BaseBarToggler.cs プロジェクト: tesm/Blazorise
 protected void ClickHandler()
 {
     // NOTE: is this right?
     if (Clicked == null)
     {
         ParentBar?.Toggle();
     }
     else
     {
         Clicked?.Invoke();
     }
 }
コード例 #2
0
        protected Task ClickHandler()
        {
            // NOTE: is this right?
            if (Clicked == null)
            {
                ParentBar?.Toggle();
            }
            else
            {
                Clicked?.Invoke();
            }

            return(Task.CompletedTask);
        }
コード例 #3
0
        /// <summary>
        /// Handles the toggler onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected Task ClickHandler()
        {
            if (Clicked.HasDelegate)
            {
                Clicked.InvokeAsync(null);
            }
            else if (Bar != null)
            {
                return(Bar.Toggle());
            }
            else if (ParentBar != null)
            {
                return(ParentBar.Toggle());
            }

            return(Task.CompletedTask);
        }
コード例 #4
0
        protected Task ClickHandler()
        {
            if (Clicked != null)
            {
                Clicked.Invoke();
            }
            else if (Bar != null)
            {
                Bar.Toggle();
            }
            else
            {
                ParentBar?.Toggle();
            }

            return(Task.CompletedTask);
        }
コード例 #5
0
        /// <summary>
        /// Handles the toggler onclick event.
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        protected async Task ClickHandler()
        {
            if (Clicked.HasDelegate)
            {
                await Clicked.InvokeAsync();
            }

            if (Bar != null)
            {
                await Bar.Toggle();

                DirtyClasses();
            }
            else if (ParentBar != null)
            {
                await ParentBar.Toggle();
            }
        }