Mango
Mango
CC#
Created by Mango on 2/20/2025 in #help
Blazor cross component state mutation
I know. We aren’t allowed to use it
7 replies
CC#
Created by Mango on 2/20/2025 in #help
Blazor cross component state mutation
but in case someone has a better idea, heres what i have: ```cs <div> // html for selecting theme mode (light </div> @code { [
7 replies
CC#
Created by Mango on 2/20/2025 in #help
Blazor cross component state mutation
But I’d like the page the match the new state as soon as possible
7 replies
CC#
Created by Mango on 2/20/2025 in #help
Blazor cross component state mutation
So if the hub communication fails, it’s not the end of the world, it would just look broke cause the state doesn’t match the new toggle value
7 replies
CC#
Created by Mango on 2/20/2025 in #help
Blazor cross component state mutation
My thought are: SignalR will work as the save to db can happen even if the hub is down and the next time the tree rerender, the state will be updated
7 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
$close
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
My end users are electrical engineers, not boring accountants like @viceroypenguin | 🦋🐧
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
Is there a format for decimal to format it to currency where negative is -$1,234.56 and not ($1,234.56)?
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
Also
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
I need a decimal. Not feline pelts
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
This is to create mock data
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
But the rounding itself doesn’t need to be accurate
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
If it matters I plan to round to 2 decimal places
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
I just want some random decimals between -300.00 and 300.00
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
Fwiw, the rounding doesn’t have to be correct
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
Yea I just need something that will give me something like "1.21m"
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
The rounding?
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
Which part is precision?
70 replies
CC#
Created by Mango on 2/13/2025 in #help
Need an extension method to generate a random decimal within a range
It may be used for scientific data but will primarily be used for currency
70 replies