[This is preliminary documentation and is subject to change.]

Represents a UIController in a classic Model View Controller pattern.

Namespace:  Firefly.Box
Assembly:  Firefly.Box (in Firefly.Box.dll) Version: 3.4.23.6473 (3.4.23.6473)

Syntax

C#
public sealed class UIController : ITask
Visual Basic (Declaration)
Public NotInheritable Class UIController _
	Implements ITask
Visual C++
public ref class UIController sealed : ITask

Remarks

The UIController controls the interaction between the user ("View") and the application.
For information about the event flow, and the execution behavior of a UIController see the documentation of the Run()()() method.
Controls from the Firefly.Box.UI namespace, that are placed on the , can only receive focus if they are associated to a column, that is part of the Columns property collection of the UIController.

Examples

Simple
This example is based on test data. The code for the entities included in this test data can be found in the documentation of Entity
This example uses automatic tools to generate parts of the user interface. Those tools can be found in the example of the documentation of Form
CopyC#
using 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();
        }

    }
}

Inheritance Hierarchy

System..::.Object
  Firefly.Box..::.UIController

See Also