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

namespace INT_PT002.DataStore
{
    public class SystemStatus
    {
        #region Field
        private int m_EquipmentColumn;

        private UserItem m_CurrentUser;

        private Define.E_DisplayMode m_CurrentMode;
        private Define.E_EquipmentStatus m_EquipmentStatus;
        private Define.E_FormStore m_CurrentDisplay;
        #endregion

        #region Constructor
        public SystemStatus()
        {
            this.Initialize();
        } 
        #endregion

        #region Property
        public int EquipmentColumn
        {
            get { return this.m_EquipmentColumn; }
            set { this.m_EquipmentColumn = value; }
        }

        public UserItem CurrentUser
        {
            get { return this.m_CurrentUser; }
            set { this.m_CurrentUser = value; }
        }

        public Define.E_DisplayMode CurrentMode
        {
            get { return this.m_CurrentMode; }
            set { this.m_CurrentMode = value; }
        }
        public Define.E_EquipmentStatus EquipmentStatus
        {
            get { return this.m_EquipmentStatus; }
            set { this.m_EquipmentStatus = value; }
        }
        public Define.E_FormStore CurrentDisplay
        {
            get { return this.m_CurrentDisplay; }
            set { this.m_CurrentDisplay = value; }
        }
        #endregion

        #region Method
        private void Initialize()
        {
            this.EquipmentColumn = 10;

            this.CurrentUser = new UserItem();
            this.CurrentUser.ID = "";
            this.CurrentUser.Password = "";
            this.CurrentUser.UserGroup = Define.E_UserGroup.f0_Level1;

            this.CurrentMode = Define.E_DisplayMode.Normal;
            this.EquipmentStatus = Define.E_EquipmentStatus.Stop;
            this.CurrentDisplay = Define.E_FormStore.FormMainDisplay;
        }
        #endregion
    }
}
