UIControllerView Property
Namespace: Firefly.BoxAssembly: Firefly.Box (in Firefly.Box.dll) Version: debug-master-v:33791
public Form View { get; set; }
Public Property View As Form
Get
Set
abstract View : Form with get, set
override View : Form with get, set
FormITaskView Simple
UIControllerThis example is based on test data. The code for the entities included in this test data can be found in the documentation of
EntityThis example uses automatic tools to generate parts of the user interface. Those tools can be found in the example of the documentation of
Formusing System;
using System.Collections.Generic;
using System.Text;
using Firefly.Box;
using Firefly.Box.Testing;
namespace TestFirefly.Box.Documentation
{
public class SimpleUIController
{
public void Run()
{
var jobs = new Pubs.Jobs();
jobs.InitializeWithTestData();
var uic = new UIController()
{
From = jobs,
View = UITools.GenerateFormWithGridFor("Display Jobs",
"A simple grid showing all the rows in the jobs entity",
jobs.Id,
jobs.Description,
jobs.MinLevel,
jobs.MaxLevel)
};
uic.Run();
}
}
}