Comparing fields?
Hi all
I would like to know if it is possible to compare two fields on a form to determine which one is "greater"?
I am writing an app that will scan the users system and display the proc speed, video card, memory, OS, etc. The user will be allowed to select a list of games to display that game's requirements.
I would like a way of determine if say, the users' proc speed is less than that of the selected games' stated proc speed.
So, for example if the users rig has an 2.2 Core 2 Duo and the selected game requires at least a 3.2 proc, how can I compare the two values?
Thanks!
Danatas GerviPosted Jul 29, 2009, 4:10 AM
I mean, you need to define the class SystemHardwareConfiguration
and fields in this class like
int CPU_Speed;
int CPU_Number;
string OS_Version;
...
and use UserControl for display this class (but only for dispay).
for this usercontrol should not be difference - from wich source it have got data (instance of SystemHardwareConfiguration ) - from Game demands DB o from local computer system data.
So, you can create the method (in class SystemHardwareConfiguration ) for comparing the two classes - one from comp, and others - from Games DB.
That way, i think...