コード例 #1
0
        private void ClientSelected(object sender, EventArgs e)
        {
            string idS    = (string)sender;
            int    id     = Int32.Parse(idS.Trim());
            var    client = _repository.GetClientById(id);

            _clientView.DisplayClientDetails(string.Format("{0},{1},{2}", client.Id, client.Name, client.Age));
        }