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



Download 21,46 Mb.
Pdf ko'rish
bet1782/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   1778   1779   1780   1781   1782   1783   1784   1785   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition

Configuring the IfElse Activity

Given that fact that our numerical data can be processed in four unique manners, we will use an

IfElse activity to determine which web method of the service to invoke. When you drag an IfElse

activity onto your designer, you will automatically be given two branches. To add additional

branches to an IfElse activity, right-click the IfElse activity icon and select the Add Branch menu

option. Figure 26-13 shows the current WF designer (note that each branch and the entire IfElse

activity have been given proper names).

Each branch of an IfElse activity can contain any number of internal activities that represent

what should take place if the decision logic results in moving the flow of the application down a

given path. Before we add these subactivities, however, we first need to add the logic that allows the

WF engine to determine which branch to take by setting the Condition value to each IfElseBranch

activity. 

Recall that the Condition event can be configured to establish a code condition or a declarative

rule condition. The first example project in this chapter already illustrated how to create a code

condition, so in this example we will opt for rule conditions. Starting with the AddBranch, set the

Condition value to Declarative Rule Condition using the Visual Studio Properties window. Next,

click the ellipsis button for the ConditionName subnode, and click the New button from the result-

ing dialog box. Here, you are able to author a code expression that will determine the truth or falsity

of the current branch. For this first branch, the expression is as follows:

this.Operation == MathOperation.Add

C H A P T E R   2 6  


Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   1778   1779   1780   1781   1782   1783   1784   1785   ...   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