eXtreme .NET: Introducing eXtreme Programming Techniques to .NET Developers [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

eXtreme .NET: Introducing eXtreme Programming Techniques to .NET Developers [Electronic resources] - نسخه متنی

Neil Roodyn

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


Try It Together


You are now ready to try pairing on some code together. Remember, pair programming is a skill as much as learning to code is a skill. The more you do, the better at it you will become.


Exercise 2-3: Exercises for Two Developers to Work On Together


These following tasks are for you to work through together and try to develop the screen saver we developed further. During the exercise, make sure you swap roles often; I suggest that if you haven''t swapped for ten minutes, you should stop and swap roles.


1.

Extend the screen saver to display a preview.

In the preceding exercise, you have created an entry point in the code that will get called when the program is run with the /p argument. Extend the code to draw the animation in the preview window provided.

Hint: The second argument in the command-line arguments is a handle to a window (hWnd) in which to draw the screen saver preview.

2.

Extend the screen saver to display a settings box.

Carry on from the screen saver exercise again, and this time add functionality to display a configuration dialog box so that the user can alter the settings on the screen saver. The entry point is already created in the Main method when a /c parameter is passed to the application.

The settings to be altered are the speed of the animation, the angle of rotation, the text color, and finally the ability to customize the text.



    / 117