Example #1
0
		/// <summary>
		/// This method is required for WComp.NET designer support.
		/// Do not change the method contents inside the source code editor.
		/// The WComp.NET designer might not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeBeans() {
            this.light_Sensor1 = new WComp.MPMS.Light_Sensor();
            this.console1 = new WComp.Beans.Console();
            this.threshold1 = new WComp.BasicBeans.Threshold();
            this.toString2 = new WComp.BasicBeans.ToString();
            this.toString2Copy = new WComp.BasicBeans.ToString();
            // 
            // light_Sensor1
            // 
            this.light_Sensor1.RefreshVal = 25;
            this.light_Sensor1.Value = -1;
            this.light_Sensor1.TypeConvert = null;
            this.light_Sensor1.configuration = WComp.MPMS.Configuration.Auto;
            this.light_Sensor1.Port = 0;
            this.light_Sensor1.Type = "Light_Sensor";
            // 
            // threshold1
            // 
            this.threshold1.Value = null;
            this.threshold1.ThresholdValue = 50;
            this.threshold1.Inverted = true;
            this.threshold1.Min = 1.7976931348623157E+308;
            this.threshold1.Max = -1.7976931348623157E+308;
            // 
            // Event dispatching
            // 
            this.light_Sensor1.ValueChanged += new WComp.MPMS.GenericSensor<double>.IntValueEventHandler(this.toString2.Input);
            this.toString2.Output += new WComp.Beans.StringEventHandler(this.@__toString2_to_threshold1_0);
            this.threshold1.ThresholdReachedBool += new WComp.Beans.BoolEventHandler(this.toString2Copy.Input);
            this.toString2Copy.Output += new WComp.Beans.StringEventHandler(this.console1.ConsoleInfo);
        }
Example #2
0
		/// <summary>
		/// This method is required for WComp.NET designer support.
		/// Do not change the method contents inside the source code editor.
		/// The WComp.NET designer might not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeBeans() {
            this.light_Sensor1 = new WComp.MPMS.Light_Sensor();
            this.console1 = new WComp.Beans.Console();
            this.toString1 = new WComp.BasicBeans.ToString();
            // 
            // light_Sensor1
            // 
            this.light_Sensor1.RefreshVal = 25;
            this.light_Sensor1.Value = -1;
            this.light_Sensor1.TypeConvert = null;
            this.light_Sensor1.configuration = WComp.MPMS.Configuration.Auto;
            this.light_Sensor1.Port = 0;
            this.light_Sensor1.Type = "Light_Sensor";
            // 
            // Event dispatching
            // 
            this.toString1.Output += new WComp.Beans.StringEventHandler(this.console1.ConsoleInfo);
            this.light_Sensor1.ValueChanged += new WComp.MPMS.GenericSensor<double>.IntValueEventHandler(this.toString1.Input);
        }