I need help for Windows Workflow Foundation assignment:

Make a Windows application that will perform the calculation of service. The form will enter the start and end dates for the calculation of service. As the length of service can be calculated in three different ways to form there will be a combobox from which to choose which method of calculation we want. Clicking the button will run the calculation obračunaj. For each method of calculation of service there will be a custom activity that will be dynamically loaded in the workflow, depending on the selected item in combobox in. The first method of calculation is that for each month that includes a 31 day, another way means that each month has 30 days, and the third way will be taken for each month of the exact number of days and shall take into account whether it is a leap year.

Recommended Answers

All 5 Replies

Did you have a specific question? Or have you made an attempt and can't get something working right? People here will not do your homework for you.

How to calculate these three methods?

How to calculate work experience with else if and 4 condition (+,-,/,*) in workflow woundation?
Help!!

First you should build a workflow, insert suspend activity which should help you to chose calculation option (30 days, 31 days, normal). After suspend activity add one empty sequence activity. This activity will be used for adding custom activities dynamically. Then build 3 custom activities (one for every method). Insert code for calculating date differences into these custom activities. In the end insert windows form with datetime pickers, combo box and labels. All what is left to do is to bind form with previously built workflow.

We can only give hints not answers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.