using System;
using System.Collections.Generic;
using System.Text;

namespace nft.ui.form
{
    public interface IxControl
    {
        string Name { get; }
        bool Enabled { get; set; }
        bool Visible { get; set; }
    }

    public interface IxControl<T> : IxControl
    {
        T Value { get; set; }
        bool IsValid(); // return true if the value is valid.
        event XFormEvent ValueChanged;
    }
}
