Ryada
Ryada
CC#
Created by Waffen on 5/22/2023 in #help
❔ Deep clone variable
Ah I missed that one then my bad was a lot of messages
86 replies
CC#
Created by Livewaffle on 5/22/2023 in #help
✅ Changing button on click
As always there are multiple ways to Rome. The easiers (and worst) solution is to give the Image node a Name property and hardcode the MyImage.Source to change in code behind Let me repeat that the above is the worst but simplest option and serves as a starting point. Depending on how knowledgable/comfortable you are with MVVM you can bind a property to the image source so you can change it from code behind but in a more decoupled way or even better change it in the viewmodel based on an event that gets bound to a viewmodel's method
6 replies
CC#
Created by Waffen on 5/22/2023 in #help
❔ Deep clone variable
Isn't it easier at all to just get the difference before adjusting an object? Or just newing up an object with replacements in the way of
var secondProfile = new Profile()
{
Name = oldProfile.Name,
Rank = oldProfile.Rank,
Experience = newExperience ?? oldProfile.Experience,
};
var secondProfile = new Profile()
{
Name = oldProfile.Name,
Rank = oldProfile.Rank,
Experience = newExperience ?? oldProfile.Experience,
};
86 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
The warm up from the computer?
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
But feel free to ping me when you have had time to check with breakpoints
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
That being said I have some questions as to what you are trying to achieve specifically by using 2 timers instead of 1
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
Alright when you do have access to your pc try placing a breakpoint on line 80 to see if the program even reaches the logic to start the outtimer, as well as place a breakpoint inside of the outtimer_tick to see if that logic is being hit (saves restarting if the first is true)
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
If you place a breakpoint on line 80 does that ever get hit?
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
That makes sense then
18 replies
CC#
Created by 𝙅𝙚𝙣𝙤𝙘𝙡𝙞𝙥 on 5/23/2023 in #help
❔ Timer with secound delay doesn't work
Just for my idea where and how do you have MainTimer and OutTimer defined?
18 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
But I have a lot of questions about this code 😂 I’m trying to understand what usecase it will have
44 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
I used string interpolation from time to time if I had to grab specific values that would change at high frequency
44 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
Yeah there are issues in the code, but I just can’t fathom needing more performance for something like this.
44 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
The main performance issue is not going to be your code
44 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
I am having trouble understanding why you would need more performance for: “opening a webbrowser navigating to a url and then making a screenshot to upload it”
44 replies
CC#
Created by Lep on 4/5/2023 in #help
❔ Auto Resize
Try seeing if any of those values aren’t matching the expected values
9 replies
CC#
Created by Lep on 4/5/2023 in #help
❔ Auto Resize
If you place a breakpoint on the line where you set Left during debugging it will pause execution there and you can read the values of the img and mainwindow that you are using
9 replies
CC#
Created by Lep on 4/5/2023 in #help
❔ Auto Resize
So first things first. Did you check if the values for the manual calculation are the ones being used during runtime?
9 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
OnPropertychanged isn’t useful for winforms.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
So because you never changed the values within Display it won’t show you the correct new time
29 replies