comparison Components/Layout/MainLayout.razor.cs @ 0:689cde763395

init cimmit
author Franklin Schmit <meokcin@gmail.com>
date Thu, 05 Sep 2024 10:16:16 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:689cde763395
1 using System.Net.Http;
2 using Microsoft.AspNetCore.Authorization;
3 using Microsoft.AspNetCore.Components;
4 using Microsoft.AspNetCore.Components.Authorization;
5 using Microsoft.AspNetCore.Components.Forms;
6 using Microsoft.AspNetCore.Components.Routing;
7 using Microsoft.AspNetCore.Components.Web;
8 using Microsoft.AspNetCore.Components.Web.Virtualization;
9 using Microsoft.JSInterop;
10 using Radzen;
11 using Radzen.Blazor;
12
13 namespace Grille2.Components.Layout
14 {
15 public partial class MainLayout
16 {
17 [Inject]
18 protected IJSRuntime JSRuntime { get; set; }
19
20 [Inject]
21 protected NavigationManager NavigationManager { get; set; }
22
23 [Inject]
24 protected DialogService DialogService { get; set; }
25
26 [Inject]
27 protected TooltipService TooltipService { get; set; }
28
29 [Inject]
30 protected ContextMenuService ContextMenuService { get; set; }
31
32 [Inject]
33 protected NotificationService NotificationService { get; set; }
34
35 private bool sidebarExpanded = true;
36
37 void SidebarToggleClick()
38 {
39 sidebarExpanded = !sidebarExpanded;
40 }
41 }
42 }