Skip to content

Commit

Permalink
simple change and remove unused tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Gilde committed Jan 12, 2025
1 parent 63d23ed commit ad3b762
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 238 deletions.
6 changes: 2 additions & 4 deletions MudBlazor.Extensions/Components/Base/MudExPickerBase.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,8 @@ protected override void OnAfterRender(bool firstRender)

private string GetElementId()
{
var fieldInfo = typeof(MudPicker<T>)
.GetField("_elementId", BindingFlags.NonPublic | BindingFlags.Instance);

return fieldInfo?.GetValue(this)?.ToString();
return typeof(MudPicker<T>)
.GetField("_elementId", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(this)?.ToString();
}

protected internal async Task ToggleStateExtAsync()
Expand Down
23 changes: 0 additions & 23 deletions MudBlazor.Extensions/Workflow/Models.cs

This file was deleted.

33 changes: 0 additions & 33 deletions MudBlazor.Extensions/Workflow/WorkflowCommandBuilder.cs

This file was deleted.

65 changes: 0 additions & 65 deletions MudBlazor.Extensions/Workflow/WorkflowDiagramBuilder.cs

This file was deleted.

42 changes: 0 additions & 42 deletions MudBlazor.Extensions/Workflow/WorkflowGroupBuilder.cs

This file was deleted.

24 changes: 0 additions & 24 deletions MudBlazor.Extensions/Workflow/WorkflowPageBuilder.cs

This file was deleted.

49 changes: 2 additions & 47 deletions Samples/MainSample.WebAssembly/Pages/Page_Test.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
@using MudBlazor.Extensions.Options

<DemoComponent PageType="@GetType()">
@* <MudGrid Style="width: 100%" Justify="Justify.Center">
<MudGrid Style="width: 100%" Justify="Justify.Center">
<MudItem xs="12">
<MudAlert><p> This demo uses the IDialogEventService to check resize or dragged and stores the latest position and size as relative values and restore them on next open </p></MudAlert>
</MudItem>
<MudItem xs="3" Class="mb-4">
<MudButton Class="m-4" OnClick="@ShowSampleDialog" Variant="Variant.Filled" Color="Color.Primary">Show Sample Dialog</MudButton>
</MudItem>
</MudGrid> *@
</MudGrid>
@((MarkupString)_svg)
</DemoComponent>

Expand All @@ -21,51 +21,6 @@
private string _svg = string.Empty;
protected override Task OnInitializedAsync()
{
var builder = new WorkflowDiagramBuilder();

builder.AddPage(p => p
.SetText("Konsolidierung")
.AddGroup(g => g
.SetName("Summenabschluss")
.SetBgColor("#f4cccc")
.AddCommand(c => c
.SetName("Kapitalkonsolidierung")
.SetBgColor("#ccf4cc")
.SetOnClick("alert('Clicked')"))
.AddCommand(c => c
.SetName("Schuldenkonsolidierung Übersicht")
.SetBgColor("#ccccf4")))
.AddGroup(g => g
.SetName("Latente Steuern")
.SetBgColor("#f0e68c")
.ConnectTo("Summenabschluss")
.AddCommand(c => c
.SetName("Latente Steuern")
.SetOnClick("alert('Latente Steuern clicked')"))))
.AddPage(p => p
.SetText("Konsolidierung")
.AddGroup(g => g
.SetName("Summenabschluss")
.SetBgColor("#f4cccc")
.AddCommand(c => c
.SetName("Kapitalkonsolidierung")
.SetBgColor("#ccf4cc")
.SetOnClick("alert('Clicked')"))
.AddCommand(c => c
.SetName("Schuldenkonsolidierung Übersicht")
.SetBgColor("#ccccf4")))
.AddGroup(g => g
.SetName("Latente Steuern")
.SetBgColor("#f0e68c")
.ConnectTo("Summenabschluss")
.AddCommand(c => c
.SetName("Latente Steuern")
.SetOnClick("alert('Latente Steuern clicked')"))));


_svg = builder.BuildSvg();
Console.WriteLine(_svg);

return base.OnInitializedAsync();
}

Expand Down

0 comments on commit ad3b762

Please sign in to comment.