Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void populateDashboardButtons()
- {
- //Connect to MongoDB, Grab Buttons
- MongoDBConnection mongoConnection = new MongoDBConnection();
- var dashboardButtons = mongoConnection.ReadButtons("USERID");
- //Loop Through each button in list
- foreach ( var button in dashboardButtons )
- {
- //add buttons to form (dashboard)
- if (flowLayoutDasboardButtons.Controls.Count < 0)
- {
- flowLayoutDasboardButtons.Controls.Clear();
- }
- else
- {
- flowLayoutDasboardButtons.Controls.Add(button);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment