Forum Replies Created
-
AuthorPosts
-
in reply to: Invoice System Tutorial Question #212462
I don’t know why my code didn’t come out right above. Here it is again in plain text:
void loadClients()
{gridClient.Rows.Clear();
List<Models.Client> clients = BunifuMapper.MapToList<Models.Client>(db.GetRows(“select * from clients where ‘ClientName’ LIKE ‘%” + txtSearch.Text.Trim() + “%'”));foreach (var client in clients)
{
gridClient.Rows.Add(new object[] {
client.id,
client.ClientName,
client.Address,
client.PostalCode,
client.Country,
client.City
});gridClient.Rows[gridClient.RowCount – 1].Tag = client;
}
}in reply to: Bunifu Button #145044I tried the
Focus()
method and it doesn’t do anything. My user interface has the buttons in a left panel. When I click on the button, I want the button to appear a certain color indicating that it is selected. I’ve set the button to appear in a purple color when clicked setting theOnPressedState
method. Am I missing something else? Am I supposed to set another property for this to happen? I put theBunifuButton1.Focus()
in the Click method as you said.Thanks
-
AuthorPosts