コード例 #1
0
        private void frmUpdateMember_Load(object sender, EventArgs e)
        {
            grdUpdateMembers.DataSource = Members.getSummaryMembers().Tables["GOLFMEMBERSLOG"];

            //GET MEMBER TYPES + FILL IN COMBOBOX
            Array comboData = Utility.getMemberTypes();

            foreach (var item in comboData)
            {
                cboUpdateType.Items.Add(item.ToString());
            }

            //GET COUNTYS + FILL IN COMBOBOX

            Array countyData = Utility.getCountyList();

            foreach (var item in countyData)
            {
                cboUpdateCounty.Items.Add(item.ToString());
            }

            //Fill member statuses into cboUpdateStatus
            Array statusArray = Utility.getMemberStatuses();

            foreach (var status in statusArray)
            {
                cboUpdateStatus.Items.Add(status);
            }
        }