private void PopulateClient() { StoneTimeBusiness.TimeEntryFunctions ui = new StoneTimeBusiness.TimeEntryFunctions(); if (SelectedClientID > 0) { DataTable dt = ui.GetClientData(SelectedClientID.ToString()); txtCompanyName.Text = dt.Rows[0]["COMPANY_NAME"].ToString(); txtWebsite.Text = dt.Rows[0]["company_website"].ToString(); InputClientComment.Text = dt.Rows[0]["comment"].ToString(); PopulateClientAddress(); } }