internal override void Changed(bool e)
 {
     BSCollapseEvent = new BSCollapseEvent()
     {
         Target = this
     };
     if (e)
     {
         ShowEvent.InvokeAsync(BSCollapseEvent);
         EventQue.Add(ShownEvent);
     }
     else
     {
         if (IsNavbar && Navbar != null)
         {
             if (Navbar.HasCollapsed == false)
             {
                 Navbar.HasCollapsed = true;
                 Navbar.Visable      = false;
             }
         }
         HideEvent.InvokeAsync(BSCollapseEvent);
         EventQue.Add(HiddenEvent);
     }
 }
Пример #2
0
        internal override async Task Changed(bool e)
        {
            Collapsing = true;

            BSCollapseEvent = new BSCollapseEvent()
            {
                Target = this
            };
            if (e)
            {
                await ShowEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false);

                EventQue.Add(ShownEvent);
            }
            else
            {
                if (IsNavbar && Navbar != null)
                {
                    if (Navbar.HasCollapsed == false)
                    {
                        Navbar.HasCollapsed = true;
                        Navbar.Visible      = false;
                    }
                }
                await HideEvent.InvokeAsync(BSCollapseEvent).ConfigureAwait(false);

                EventQue.Add(HiddenEvent);
            }
        }
Пример #3
0
 protected void OnClick()
 {
     IsOpen = false;
     OnDismiss.InvokeAsync(EventCallback.Empty);
     BSAlertEvent = new BSAlertEvent()
     {
         Target = this
     };
     CloseEvent.InvokeAsync(BSAlertEvent);
     EventQue.Add(ClosedEvent);
 }
Пример #4
0
 internal override void Changed(bool e)
 {
     BSDropdownEvent = new BSDropdownEvent()
     {
         Target = this
     };
     if (e)
     {
         ShowEvent.InvokeAsync(BSDropdownEvent);
         EventQue.Add(ShownEvent);
     }
     else
     {
         HideEvent.InvokeAsync(BSDropdownEvent);
         EventQue.Add(HiddenEvent);
     }
 }
Пример #5
0
 internal override void Changed(bool e)
 {
     BSModalEvent = new BSModalEvent()
     {
         Target = this
     };
     if (e)
     {
         ShowEvent.InvokeAsync(BSModalEvent);
         EventQue.Add(ShownEvent);
     }
     else
     {
         Closed = true;
         HideEvent.InvokeAsync(BSModalEvent);
         EventQue.Add(HiddenEvent);
     }
 }