|
Jovita Dsa wrote: Hey everyone, I'm the new CodeProject contest manager.
We are very self-service, even in HR. Jovita got to introduce herself!
|
|
|
|
|
I'm very glad to see the IoT contest again this year (and looks even better this year).
Thanks for all the great stuff at CP.
I've already begun work on the first challenge. It's a lot of fun.
|
|
|
|
|
Welcome
modified 13-Sep-18 21:01pm.
|
|
|
|
|
Thanks!
|
|
|
|
|
Welcome on board! Benvenuta a bordo!
And congratulations: you're the first woman I see on CP in 3 years and 7 months of participation in the community!
GCS d-- s-/++ a- C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Thanks it's great to be here!
|
|
|
|
|
Thank you!
|
|
|
|
|
Welcome, Jovita,
The great Sufi poet, Kabir, wrote: "where there is a garden, the flowers will come" ("rahi gulzat to phool khilenge").
I am sure you are a flower, as well as someone who will be an excellent gardener !
cheers, Bill
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12
|
|
|
|
|
Thank you for the warm welcome!
|
|
|
|
|
Hi Jovita,
nice to meet you and welcome to the big "family" of CP.
See you around
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Thank you!
|
|
|
|
|
I just wrote this. It works, exactly as it's supposed to.
Common.Initialize<TaxCode>(
dxgTaxCodes,
tc => !tc.Archived,
archiveController.OnTaxCodeDeleted,
archiveController.OnTaxCodeChanging,
onFinalized: (_, __) =>
Common.Initialize<Product>(
dxgProducts,
p => !p.Archived,
archiveController.OnProductDeleted,
archiveController.OnProductChanging,
updateLookups: true,
decoupledLookups: true,
onFinalized: (___, ____) => Common.Initialize<ProductSchedule>(
dxgProductSchedules,
p => !p.Archived,
updateLookups: true,
decoupledLookups: true)));
Here's the code with comments:
Common.Initialize<TaxCode>(
dxgTaxCodes,
tc => !tc.Archived,
archiveController.OnTaxCodeDeleted,
archiveController.OnTaxCodeChanging,
onFinalized: (_, __) =>
Common.Initialize<Product>(
dxgProducts,
p => !p.Archived,
archiveController.OnProductDeleted,
archiveController.OnProductChanging,
updateLookups: true,
decoupledLookups: true,
onFinalized: (___, ____) => Common.Initialize<ProductSchedule>(
dxgProductSchedules,
ps => !ps.Archived,
updateLookups: true,
decoupledLookups: true)));
(I hope the formatting got preserved.)
OK, yeah, this is a bit much.
|
|
|
|
|
Who's this mean green commenting machine?
|
|
|
|
|
That code reminds me of assembler, where I used to pretty much comment every line to explain why the instruction was there.
|
|
|
|
|
I dare you to convert that to VB.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
It looks like you have some broad butts in your code.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
Readability is partially a matter of taste I guess, but I think if the onFinalized 's weren't inlined, the three remaining blocks wouldn't be as intimidating anymore and you would probably not need any comments at all.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
And you are proud of it?
You aren't an engineer, you are a nerd.
|
|
|
|
|
I'm sorry Marc, but... ew.
Based on this code fragment, however, you may have finally disproved the truism about death and taxes. Since you wrote this, you can never die because they'll need you to stay around to maintain it.
Software Zen: delete this;
|
|
|
|
|
Now, THAT would NOT pass a code review! Comments should reveal what the code cannot. In this case, almost every single comment is clearly represented in the code.
What is missing is WHY this was necessary, and any limitations thereof. (eg, it cannot load old tax codes)
|
|
|
|
|
I use Visual Studio 2012 C#. I would like to create an application controlling the mouse cursor on the screen. I would like to set the coordinates of the mouse cursor on the screen and then to click with the mouse over the desired coordinates. I would like to set keys combination without using the keyboard and then to go to these coordinates automatically with the mouse cursor. I need information about the functions or properties for click events of the mouse cursor without using the mouse. Could you please help with any tutorial or example, please?
|
|
|
|
|
You could always try www.google.com[^]. You could also read again the text at the top of this page.
|
|
|
|
|
Member 12268183 wrote: Could you please help with any tutorial or example, please? Welcome - The complete C# tutorial[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Thank you for the answer. I need only the functions related with the mouse cursor control not the whole training C# course.
Regards
|
|
|
|