using System; using System.Collections.Generic; using System.Text; using Ease.CoreV35.Model; using Ease.CoreV35.Caching; using System.Collections; namespace Ease.UICreator { public class MasterForm { #region Variables private string _formName; private int _height; private int _width; private string _caption; private bool _max; private bool _min; private ObjectsTemplate _sourceCollection; private MasterFormlvws _listviewcloumns; private MasterFormTreeView _TreeView; private SingleForm _singleForm; private string _GetFunctionName; #endregion #region Constructor public MasterForm() { _formName = ""; _height = 1000; _width = 1000; _caption = ""; _max = true; _min = true; _listviewcloumns = new MasterFormlvws(); _singleForm = new SingleForm(); _TreeView = new MasterFormTreeView(); _GetFunctionName = ""; } #endregion #region Properties #region Height public int Height { get { return _height; } set { _height = value; } } #endregion #region FormName public string FormName { get { return _formName; } set { _formName = value; } } #endregion #region GetFunctionName public string GetFunctionName { get { return _GetFunctionName; } set { _GetFunctionName = value; } } #endregion #region Width public int Width { get { return _width; } set { _width = value; } } #endregion #region Caption public string Caption { get { return _caption; } set { _caption = value; } } #endregion #region Max public bool Max { get { return _max; } set { _max = value; } } #endregion #region Min public bool Min { get { return _min; } set { _min = value; } } #endregion #region SourceCollection public ObjectsTemplate SourceCollection { get { return _sourceCollection; } set { _sourceCollection = value; } } public void CopyCollList(List source) where T : ObjectTemplate { _sourceCollection = new ObjectsTemplate(); foreach (var item in source) _sourceCollection.Add(item); } #endregion #region Listviewcloumns public MasterFormlvws Listviewcloumns { get { return _listviewcloumns; } set { _listviewcloumns = value; } } #endregion #region Tree View public MasterFormTreeView TreeView { get { return _TreeView; } set { _TreeView = value; } } #endregion #region Basic Entry Form public SingleForm SingleForm { get { return _singleForm; } set { _singleForm = value; } } #endregion #endregion } }