I have a new one. 7 Want to take advantage of Taskbar functionality in a NAT application and would like to know what people think is the best way for the features of Windows 7 in .NET. My aim is to have separate code for Windows XP and Windows 7.
I'm not seriously anxious:
- Wrap Windows 7 code in just a try.
- If OS = "Windows 7" then ..
Of course this is what most are doing. I have actually hunted everywhere for a good perspective but without the success Microsoft unmanaged code wrapper library is just running on Windows 7 ... if anything with OS = "Windows 7" " Not sure if
- this is
if the OS and gt; = "Windows 7"
(so that it does not break into Windows 7.1 or whatever successor) and - This probe should be done by (platform and> = version).
If you do not want to dislodge your code with (ifWindows7) {...}
, you put the platform-specific code in a different class You can. For example, you can create an interface
interface IOSSpecific {void AddToJumpList (...); ...}
and two implementations of this class, one => win 7 and one for others (which is not a different thing or anything) when your application begins, So you introduce some global variables of IOSSpecific
with one of two codes.
No comments:
Post a Comment