It could be that each form has a weight of -2. Therefore while his upper limit is 5, each added form will decrease the count by 2 and he will never reach the upper limit.
MattHuntington
@MattHuntington
Best posts made by MattHuntington
Latest posts made by MattHuntington
-
RE: Wufoo Negative Forms
-
Fun with interfaces.
While working on a winforms project that has forms that need to know if they have changes I was considering how to implement it. I thought back to other projects I'd seen with methods like IsDirty() which would return a bool if the form had unsaved changes. Well I decided to create an interface to implement it and I was trying to come up with what to call it. Like interfaces are supposed to be I prefixed it with "I" and called it "ICanHaveChanges". After looking at that name I decided "CanHaveChanges" isn't accurate and decided since this interface will have the "IsDirty" method I decided with the interface as declared below.
interface ICanBeDirty
{}
It wasn't until I looked back at what I had just typed that I couldn't help from laughing.
-
RE: Just in case we tear the fabric of spacetime
@joe.edwards@imaginuity.com said:
What if dateTime1 > dateTime2? It seems just WTFey enough to make me think that that constraint isn't actually enforced...
Leaving all other assumption aside it wouldn't matter if dateTime1 > dateTime2 as long as the now<dateTime1 block is still valid. It would just mean it's never active. -
Misused Ternary
Cleaning up some C# code I found on Code Project that had a lot of problems but when I came across this one I just shook my head.
pnlUserInfo.Enabled = (rdoSqlAuthentication.Checked) ? true : false;