public override void ResetText() { base.ResetText(); txtSearch.Text = ""; lblSelectedUser.Text = ""; CurrentSelectedClient = new ClientEntity(); }
private void LookupDialogOnClientSelected(ClientEntity selectedClient) { txtSearch.Text = selectedClient.CompanyName.ToString(); lblSelectedUser.Text = selectedClient.CompanyName; if (ClientSelected != null) ClientSelected(selectedClient); CurrentSelectedClient = selectedClient; }
private void ActivateSelection() { int clientID = Convert.ToInt32(lstClients.SelectedItems[0].Name); ClientEntity c = new ClientEntity(clientID); if (ClientSelected != null) { ClientSelected(c); } this.Close(); }
public void SetClient(ClientEntity ent) { txtSearch.Text = ent.CompanyName; lblLookup.Text = ent.CompanyName; CurrentSelectedClient = ent; }
private void btnNew_Click(object sender, EventArgs e) { curClient = new ClientEntity(); EditState(eEditState.New); }
private void clientLookup1_ClientSelected(DataCat.Database.Entities.ClientEntity SelectedClient) { curClient = SelectedClient; EditState(eEditState.Edit); PopulateCurrentClient(); }