This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet1764/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1760   1761   1762   1763   1764   1765   1766   1767   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Adding a Code Activity

The first activity you will add in the sequence is a Code activity. To do so, drag a Code activity

component from the Windows Workflow Toolbox and drop it onto the line connecting the starting

and ending points of the workflow. Next, use the Properties window to rename this activity as

ShowInstructionsActivity. At this point, your designer should look like Figure 26-6.

Figure 26-6.

A (not quite ready for prime time) Code activity

As you can see, the designer is currently reporting an error, which you can view by clicking

the red exclamation point on top of the Code activity. The error informs you that the ExecuteCode

value has not been set, which is a mandatory step for all Code activity types. Not too surprisingly,

ExecuteCode establishes the name of the method to execute when this task is encountered by the

WF runtime engine.

Using the Properties window, set the value of ExecuteCode to a method named

ShowInstructions. Once you press the Enter key, the IDE will update the primary *.cs code file

with the following stub code:

public sealed partial class ProcessUsernameWorkflow : SequentialWorkflowActivity

{

public ProcessUsernameWorkflow()



{

InitializeComponent();

}

private void ShowInstructions(object sender, EventArgs e)



{

}

}



C H A P T E R   2 6  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1760   1761   1762   1763   1764   1765   1766   1767   ...   1830




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish