Example #1
0
        private void ClientesForm_Load(object sender, EventArgs e)
        {
            var dataSource = _clienteManager.GetAll();

            if (_isSearchMode)
            {
                dataSource.Remove(new Cliente()
                {
                    UserID = Session.User.UserID
                });
            }
            dgvClientes.AutoGenerateColumns = false;
            dgvClientes.DataSourceChanged  += new EventHandler(dgvClientes_DataSourceChanged);
            dataSource.Remove(new Cliente()
            {
                UserID = Session.User.UserID
            });
            dgvClientes.DataSource   = dataSource;
            dgvClientes.DoubleClick += new EventHandler(dgvClientes_DoubleClick);
        }
Example #2
0
 public List <Cliente> GetAll()
 {
     return(clienteM.GetAll());
 }