Click here to Skip to main content
15,893,588 members
Articles / Desktop Programming / Windows Forms

Recoding Using the Template Method Design Pattern

Rate me:
Please Sign up or sign in to vote.
1.47/5 (5 votes)
29 May 2007CPOL 20.4K   77   13  
This article shows a recoding sample using the Template Method Design Pattern.
        private void SaveEventNMandID()
        {
            // T_SCH_WRK's WRK_NM
            currentActivity.BWrkName = eventNameCombo.Text;
            // T_SCH_TREE's WRK_NM
            currentActivity.Name = eventNameCombo.Text;

            // T_SCH_WRK's WRK_ID
            string value = (string)((PADUtil.ConcreteTableToEventComboBox)MEventToEventComboBox).GetValueOfCurrentItem(eventNameCombo.Text);
            currentActivity.BWrkId = value;
        }

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Japan Japan
Ph.D(Computer Network)
Project Manger
Developer

Comments and Discussions