コード例 #1
0
        protected override void OnInitialized()
        {
            Console.WriteLine(ElementId + " " + ParentBar + " " + this);
            ParentBar?.Hook(this);

            base.OnInitialized();
        }
コード例 #2
0
ファイル: SerializerTest.cs プロジェクト: ryohey/Reinspector
        public void TestNestedClass()
        {
            var obj = new ParentBar {
                a = "bar", child = new Bar {
                    a = 1, b = 2
                }
            };

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

            return(Task.CompletedTask);
        }
コード例 #5
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);
        }
コード例 #6
0
        protected Task ClickHandler()
        {
            if (Clicked != null)
            {
                Clicked.Invoke();
            }
            else if (Bar != null)
            {
                Bar.Toggle();
            }
            else
            {
                ParentBar?.Toggle();
            }

            return(Task.CompletedTask);
        }
コード例 #7
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();
            }
        }
コード例 #8
0
        protected override void OnInitialized()
        {
            ParentBar?.Hook(this);

            base.OnInitialized();
        }