Files
Common-VS2019/SacsMobileMaui/Maui/Base/SamComponents.cs
T

55 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sarand.Net.Mobile.Maui.Base
{
//=======================================================================
public class SamComponents
{
//-------------------------------------------------------------------
// Definitions.
//-------------------------------------------------------------------
// Data members.
private bool readOnly = false;
//-------------------------------------------------------------------
// Construction.
public SamComponents()
{
}
//-------------------------------------------------------------------
// Properties.
public bool ReadOnly
{
get { return readOnly; }
set { if (readOnly == value) return; readOnly = value; SetControlsReadOnly(); }
}
public bool Changed { get; protected set; } = false;
//-------------------------------------------------------------------
// C o n f i g u r e C o m p o n e n t s
//-------------------------------------------------------------------
protected virtual void ConfigureComponents()
{
}
//-------------------------------------------------------------------
// C o n t r o l A c t i v i t y
//-------------------------------------------------------------------
protected virtual void SetControlActivity()
{
}
protected virtual void SetControlsReadOnly()
{
}
//-------------------------------------------------------------------
}
//=======================================================================
}