Comment by Sinatr on Which programming language is better for a GUI...
Despite you for some reasons narrow the choice to only 2 languages, in C# the next not-so-easy choice would be selecting UI library: winforms, WPF, MAUI, Avalonia, Uno, etc.
View ArticleAnswer by Sinatr for How to avoid stale values when using WhenAnyValue and...
To demonstrate the problem more clearly I have increased the number Foo properties:public class Foo : ReactiveObject{ [Reactive] public int Bar { get; set; } [Reactive] public int Baz { get; set; }...
View ArticleComment by Sinatr on Detect when the user of a winforms .net application is idle
Are you sure want to detect user inactivity and not application inactivity? Reducing polling frequency is like reducing "application activity" when user switches to some other application.
View ArticleComment by Sinatr on Sending CTRL+F4 to browser messes with subsequent keys
CTRL should be held pressed when you press F4, sending keyup for control is likely the problem, try sending it the last?
View ArticleComment by Sinatr on How to simulate a Ctrl A + Ctrl C using keybd_event
You missed the "using keybd_event" point.
View ArticleComment by Sinatr on Async Await Unexpected behaviour
Here65 is printed at the end as expected. Without await Task.Delay there is nothing running asynchronously. Replace it with Thread.Sleep to have issue again, because in this case...
View ArticleComment by Sinatr on Async Await Unexpected behaviour
To the point 4 (I am not quite understand what is written in the answer): using await Task.Delay in LongRunningOperationAsync will break fully synchronous execution until that point and cause Main to...
View ArticleComment by Sinatr on Converting IEnumerable to List taking lot of Time
Pagination? .Skip(X).Take(Y).ToList() ?
View ArticleComment by Sinatr on What can be done about "timer drift"? Background tasks...
The first thought: why not using a timer? You will have a +/- error for each tick, at 8:00 too, but it will never "accumulate". Another option - calculate next delay with correction (using...
View ArticleComment by Sinatr on C# values types - is this a compiler bug?
You are not. This is a good question for interview.
View ArticleComment by Sinatr on Using dotnet run to execute C# files containing Main()
Make single solution with many projects of type "console application"?
View ArticleComment by Sinatr on Programmatically setting current cell without breaking...
Focus isn't so easy in WPF and when playing with dispatcher you may need to play with priorities too. Please prepare minimal reproducible example if you need help (ideally with minimum dependencies,...
View ArticleComment by Sinatr on How to count the number of items in a list that are...
"goal is to inform the user of total actions done" - see XY problem. Always post an original requirement if you have issues with attempted solution. There is mistake in example 3: DEFH changed to FDED...
View ArticleComment by Sinatr on Null check with spread operator
oldList is OldListType x ? [..x] : null ?
View ArticleComment by Sinatr on Default keyword behaviour
@MakePeaceGreatAgain, got it thanks, was stupid suggestion.
View ArticleComment by Sinatr on Parsing .ini file using Linq
I'd add link to previous question and explain the problem which doesn't allow using library.
View ArticleComment by Sinatr on Deserialising json file with multiple objects, of which...
Have you been there? What specific problem which makes you unable to continue you have?
View ArticleComment by Sinatr on How do I make a button switch to display two?
It looks like you don't have second monitor available. Check this by logging Display.displays.Length in Start. Why you don't have second monitor? No idea, but here is a hint, that your game needs to...
View ArticleComment by Sinatr on How do i create a Timer in Avalonia and save the value...
Use DateTime.Now - previousDateTimeNow to measure working time, you don't need microseconds, right?
View Article