예제 #1
0
        private static void ValueChange(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            InputTemp x = (InputTemp)sender;

            if ((bool)e.NewValue)
            {
                x.ep.Fill = StaticRes.ColorBrushes.Linear_Green;
            }
            else
            {
                x.ep.Fill = StaticRes.ColorBrushes.Linear_Silver;
            }
        }
예제 #2
0
 void Timer(object sender, EventArgs e)
 {
     InputTemp[] IO_Input_Status = new InputTemp[] { i_1_1, i_1_2, i_1_3, i_1_4, i_1_5, i_1_6, i_1_7, i_1_8,
                                                     i_1_9, i_1_10, i_1_11, i_1_12, i_1_13, i_1_14, i_1_15, i_1_16,
                                                     i_1_17, i_1_18, i_1_19, i_1_20, i_1_21, i_1_22, i_1_23, i_1_24,
                                                     i_1_25, i_1_26, i_1_27, i_1_28, i_1_29, i_1_30, i_1_31, i_1_32,
                                                     i_2_1, i_2_2, i_2_3, i_2_4, i_2_5, i_2_6, i_2_7, i_2_8,
                                                     i_2_9, i_2_10, i_2_11, i_2_12, i_2_13, i_2_14, i_2_15, i_2_16,
                                                     i_2_17, i_2_18, i_2_19, i_2_20, i_2_21, i_2_22, i_2_23, i_2_24,
                                                     i_2_25, i_2_26, i_2_27, i_2_28, i_2_29, i_2_30, i_2_31, i_2_32 };
     int[] PCI_1756_Status = Hardware.IO_LIST.Input.IO_1756_Status();
     int[] PCI_1733_Status = Hardware.IO_LIST.Input.IO_1733_Status();
     for (int i = 0; i < 64; i++)
     {
         if (i < 32)
         {
             if (PCI_1756_Status[i] == 0)
             {
                 IO_Input_Status[i].Value = false;
             }
             else
             {
                 IO_Input_Status[i].Value = true;
             }
         }
         else
         {
             if (PCI_1733_Status[i - 32] == 0)
             {
                 IO_Input_Status[i].Value = false;
             }
             else
             {
                 IO_Input_Status[i].Value = true;
             }
         }
     }
     GC.Collect();
 }
예제 #3
0
        private static void DescriptionChange(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            InputTemp x = (InputTemp)sender;

            x.txt_desc.Text = e.NewValue.ToString();
        }
예제 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((EMS.InputPage)(target));
                return;

            case 2:
                this.sb_right_1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.sb_left_3 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 4:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.wrapPanel2 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 6:
                this.i_2_1 = ((EMS.InputTemp)(target));
                return;

            case 7:
                this.i_2_9 = ((EMS.InputTemp)(target));
                return;

            case 8:
                this.i_2_17 = ((EMS.InputTemp)(target));
                return;

            case 9:
                this.i_2_25 = ((EMS.InputTemp)(target));
                return;

            case 10:
                this.i_2_2 = ((EMS.InputTemp)(target));
                return;

            case 11:
                this.i_2_10 = ((EMS.InputTemp)(target));
                return;

            case 12:
                this.i_2_18 = ((EMS.InputTemp)(target));
                return;

            case 13:
                this.i_2_26 = ((EMS.InputTemp)(target));
                return;

            case 14:
                this.i_2_3 = ((EMS.InputTemp)(target));
                return;

            case 15:
                this.i_2_11 = ((EMS.InputTemp)(target));
                return;

            case 16:
                this.i_2_19 = ((EMS.InputTemp)(target));
                return;

            case 17:
                this.i_2_27 = ((EMS.InputTemp)(target));
                return;

            case 18:
                this.i_2_4 = ((EMS.InputTemp)(target));
                return;

            case 19:
                this.i_2_12 = ((EMS.InputTemp)(target));
                return;

            case 20:
                this.i_2_20 = ((EMS.InputTemp)(target));
                return;

            case 21:
                this.i_2_28 = ((EMS.InputTemp)(target));
                return;

            case 22:
                this.i_2_5 = ((EMS.InputTemp)(target));
                return;

            case 23:
                this.i_2_13 = ((EMS.InputTemp)(target));
                return;

            case 24:
                this.i_2_21 = ((EMS.InputTemp)(target));
                return;

            case 25:
                this.i_2_29 = ((EMS.InputTemp)(target));
                return;

            case 26:
                this.i_2_6 = ((EMS.InputTemp)(target));
                return;

            case 27:
                this.i_2_14 = ((EMS.InputTemp)(target));
                return;

            case 28:
                this.i_2_22 = ((EMS.InputTemp)(target));
                return;

            case 29:
                this.i_2_30 = ((EMS.InputTemp)(target));
                return;

            case 30:
                this.i_2_7 = ((EMS.InputTemp)(target));
                return;

            case 31:
                this.i_2_15 = ((EMS.InputTemp)(target));
                return;

            case 32:
                this.i_2_23 = ((EMS.InputTemp)(target));
                return;

            case 33:
                this.i_2_31 = ((EMS.InputTemp)(target));
                return;

            case 34:
                this.i_2_8 = ((EMS.InputTemp)(target));
                return;

            case 35:
                this.i_2_16 = ((EMS.InputTemp)(target));
                return;

            case 36:
                this.i_2_24 = ((EMS.InputTemp)(target));
                return;

            case 37:
                this.i_2_32 = ((EMS.InputTemp)(target));
                return;

            case 38:
                this.btn_Left = ((System.Windows.Controls.Button)(target));

            #line 124 "..\..\..\..\MaintMode\InputPage.xaml"
                this.btn_Left.Click += new System.Windows.RoutedEventHandler(this.btn_Left_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.btn_Right = ((System.Windows.Controls.Button)(target));

            #line 129 "..\..\..\..\MaintMode\InputPage.xaml"
                this.btn_Right.Click += new System.Windows.RoutedEventHandler(this.btn_Right_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.lb_title = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.wrapPanel1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 42:
                this.i_1_1 = ((EMS.InputTemp)(target));
                return;

            case 43:
                this.i_1_9 = ((EMS.InputTemp)(target));
                return;

            case 44:
                this.i_1_17 = ((EMS.InputTemp)(target));
                return;

            case 45:
                this.i_1_25 = ((EMS.InputTemp)(target));
                return;

            case 46:
                this.i_1_2 = ((EMS.InputTemp)(target));
                return;

            case 47:
                this.i_1_10 = ((EMS.InputTemp)(target));
                return;

            case 48:
                this.i_1_18 = ((EMS.InputTemp)(target));
                return;

            case 49:
                this.i_1_26 = ((EMS.InputTemp)(target));
                return;

            case 50:
                this.i_1_3 = ((EMS.InputTemp)(target));
                return;

            case 51:
                this.i_1_11 = ((EMS.InputTemp)(target));
                return;

            case 52:
                this.i_1_19 = ((EMS.InputTemp)(target));
                return;

            case 53:
                this.i_1_27 = ((EMS.InputTemp)(target));
                return;

            case 54:
                this.i_1_4 = ((EMS.InputTemp)(target));
                return;

            case 55:
                this.i_1_12 = ((EMS.InputTemp)(target));
                return;

            case 56:
                this.i_1_20 = ((EMS.InputTemp)(target));
                return;

            case 57:
                this.i_1_28 = ((EMS.InputTemp)(target));
                return;

            case 58:
                this.i_1_5 = ((EMS.InputTemp)(target));
                return;

            case 59:
                this.i_1_13 = ((EMS.InputTemp)(target));
                return;

            case 60:
                this.i_1_21 = ((EMS.InputTemp)(target));
                return;

            case 61:
                this.i_1_29 = ((EMS.InputTemp)(target));
                return;

            case 62:
                this.i_1_6 = ((EMS.InputTemp)(target));
                return;

            case 63:
                this.i_1_14 = ((EMS.InputTemp)(target));
                return;

            case 64:
                this.i_1_22 = ((EMS.InputTemp)(target));
                return;

            case 65:
                this.i_1_30 = ((EMS.InputTemp)(target));
                return;

            case 66:
                this.i_1_7 = ((EMS.InputTemp)(target));
                return;

            case 67:
                this.i_1_15 = ((EMS.InputTemp)(target));
                return;

            case 68:
                this.i_1_23 = ((EMS.InputTemp)(target));
                return;

            case 69:
                this.i_1_31 = ((EMS.InputTemp)(target));
                return;

            case 70:
                this.i_1_8 = ((EMS.InputTemp)(target));
                return;

            case 71:
                this.i_1_16 = ((EMS.InputTemp)(target));
                return;

            case 72:
                this.i_1_24 = ((EMS.InputTemp)(target));
                return;

            case 73:
                this.i_1_32 = ((EMS.InputTemp)(target));
                return;
            }
            this._contentLoaded = true;
        }