Operating OperatingHazard Restricted LoadTransfer Confined Forbidden
@code { [Parameter] public EventCallback EditorStateChanged { get; set; } [Parameter] public EventCallback EditorZoneTypeChanged { get; set; } [CascadingParameter] public bool MapIsActive { get; set; } private EditorState State = EditorState.View; private ZoneType Type = ZoneType.Operating; private async Task EditorButtonChanged(EditorState state) { if (state != State) { State = state; await EditorStateChanged.InvokeAsync(state); } } private async Task ZoneTypeButtonChanged() { await EditorZoneTypeChanged.InvokeAsync(Type); } public void SetEditorState(EditorState state) { if (State != state) { State = state; StateHasChanged(); } } }