//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1008
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace Neo.ApplicationFramework.Generated
{
	using Neo.ApplicationFramework.Tools.Alarm;
	
	
	public partial class AlarmServer : Neo.ApplicationFramework.Tools.Alarm.AlarmServer
	{
		
		private Neo.ApplicationFramework.Tools.Alarm.AlarmGroup m_Default;
		
		private Neo.ApplicationFramework.Tools.Alarm.AlarmItem m_Default_AlarmItem0;
		
		public AlarmServer()
		{
			this.InitializeComponent();
			this.ApplyLanguageInternal();
		}
		
		public Neo.ApplicationFramework.Tools.Alarm.AlarmGroup Default
		{
			get
			{
				return this.m_Default;
			}
			set
			{
				this.m_Default = value;
			}
		}
		
		public Neo.ApplicationFramework.Tools.Alarm.AlarmItem Default_AlarmItem0
		{
			get
			{
				return this.m_Default_AlarmItem0;
			}
			set
			{
				this.m_Default_AlarmItem0 = value;
			}
		}
		
		private void InitializeComponent()
		{
			this.InitializeObjectCreations();
			this.InitializeBeginInits();
			this.InitializeObjects();
			this.InitializeEndInits();
			this.ConnectDataBindings();
		}
		
		protected override void Dispose(bool disposing)
		{
			base.Dispose(disposing);
		}
		
		[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
		public override void ConnectDataBindings()
		{
			base.ConnectDataBindings();
		}
		
		private void InitializeObjectCreations()
		{
			this.Default = new Neo.ApplicationFramework.Tools.Alarm.AlarmGroup();
			this.Default_AlarmItem0 = new Neo.ApplicationFramework.Tools.Alarm.AlarmItem();
		}
		
		private void InitializeBeginInits()
		{
			((System.ComponentModel.ISupportInitialize)(this.Default_AlarmItem0)).BeginInit();
		}
		
		private void InitializeEndInits()
		{
			((System.ComponentModel.ISupportInitialize)(this.Default_AlarmItem0)).EndInit();
		}
		
		private void InitializeObjects()
		{
			this.Default.AcknowledgeBackColor = System.Drawing.Color.Green;
			this.Default.AcknowledgeForeColor = System.Drawing.Color.Black;
			this.Default.ActiveBackColor = System.Drawing.Color.Red;
			this.Default.ActiveForeColor = System.Drawing.Color.Black;
			this.Default_AlarmItem0.AcknowledgeRequired = true;
			this.Default_AlarmItem0.ComparerType = Neo.ApplicationFramework.Interfaces.ComparerTypes.GreaterThan;
			this.Default_AlarmItem0.Contacts = null;
			this.Default_AlarmItem0.DefaultText = "";
			this.Default_AlarmItem0.DisplayName = "AlarmItem0";
			Neo.ApplicationFramework.Common.Dynamics.DynamicString dynamicstring1 = new Neo.ApplicationFramework.Common.Dynamics.DynamicString();
			dynamicstring1.Text = "";
			this.Default_AlarmItem0.DynamicString = dynamicstring1;
			this.Default_AlarmItem0.EnableDistribution = false;
			this.Default_AlarmItem0.GroupId = new System.Guid("925fbc7a-2420-4c2e-a227-8470f3ddde3c");
			this.Default_AlarmItem0.GroupName = "Default";
			this.Default_AlarmItem0.History = true;
			this.Default_AlarmItem0.IsDigitalValue = false;
			this.Default_AlarmItem0.Name = "Default_AlarmItem0";
			this.Default_AlarmItem0.OutputDevices = null;
			this.Default_AlarmItem0.StoreType = Neo.ApplicationFramework.Interfaces.StoreTypes.StoreAll;
			this.Default_AlarmItem0.TriggerValue = 90;
			this.Default.AlarmItems.Add(this.Default_AlarmItem0);
			this.Default.EnableDistribution = false;
			this.Default.InactiveBackColor = System.Drawing.Color.Yellow;
			this.Default.InactiveForeColor = System.Drawing.Color.Black;
			this.Default.Name = "Default";
			this.AlarmGroups.Add(this.Default);
			this.DatabaseEvent.ActiveTime = null;
			this.DatabaseEvent.Count = 0;
			this.DatabaseEvent.State = Neo.ApplicationFramework.Interfaces.AlarmState.Normal;
			this.DatabaseEvent.TableName = "AlarmServer";
		}
		
		[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
		private void ApplyLanguageInternal()
		{
			Neo.ApplicationFramework.Tools.MultiLanguage.MultiLanguageResourceManager resources = new Neo.ApplicationFramework.Tools.MultiLanguage.MultiLanguageResourceManager(typeof(AlarmServer));
			this.m_Default.Text = resources.GetText("AlarmServer.Default.Text", "Default");
			this.m_Default_AlarmItem0.StaticText = resources.GetText("AlarmServer.Default_AlarmItem0.StaticText", "");
		}
		
		[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
		protected override void ApplyLanguage()
		{
			this.ApplyLanguageInternal();
			base.ApplyLanguage();
		}
	}
}
