コード例 #1
0
ファイル: UICompanyDetails.cs プロジェクト: DR2010/FCM2
        //
        // List companies
        //
        private void loadClientList()
        {
            elementSourceDataTable.Clear();

            var compList = new ClientList(_userID);

            compList.List();

            foreach (Client Client in compList.clientList)
            {
                DataRow elementRow = elementSourceDataTable.NewRow();
                elementRow["UID"]                   = Client.UID;
                elementRow["ABN"]                   = Client.ABN;
                elementRow["Name"]                  = Client.Name;
                elementRow["Phone"]                 = Client.Phone;
                elementRow["Fax"]                   = Client.Fax;
                elementRow["EmailAddress"]          = Client.EmailAddress;
                elementRow["MainContactPersonName"] = Client.MainContactPersonName;
                elementRow["Address"]               = Client.Address;

                elementSourceDataTable.Rows.Add(elementRow);
            }
        }