Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\Views\PageEnvironment.xaml"
                ((EdibleFungusGreenhouse.Views.PageEnvironment)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.BorderSet = ((System.Windows.Controls.Border)(target));

            #line 46 "..\..\..\Views\PageEnvironment.xaml"
                this.BorderSet.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.BorderSet_IsVisibleChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.TextBoxLowTemp = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.TextBoxHighTemp = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.TextBoxLowHumi = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.TextBoxHighHumi = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.TextBoxLowLight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.TextBoxHighLight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.CheckBoxFanStatus = ((Utils.BulletCheckBox)(target));
                return;

            case 10:
                this.CheckBoxHeaterStatus = ((Utils.BulletCheckBox)(target));
                return;

            case 11:
                this.ButtonSave = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.ButtonCancel = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.ImageFan = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.ImageHeater = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.LabTemValue = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.LabHumiValue = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.LabLightValue = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.ButtonSet = ((System.Windows.Controls.Button)(target));

            #line 212 "..\..\..\Views\PageEnvironment.xaml"
                this.ButtonSet.Click += new System.Windows.RoutedEventHandler(this.ButtonSet_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Views\PageMonitor.xaml"
                ((EdibleFungusGreenhouse.Views.PageMonitor)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ImageCamera = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.ButonUp = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\..\Views\PageMonitor.xaml"
                this.ButonUp.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButonUp_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 56 "..\..\..\Views\PageMonitor.xaml"
                this.ButonUp.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ButonUp_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 4:
                this.ButonDown = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\..\Views\PageMonitor.xaml"
                this.ButonDown.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButonDown_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 64 "..\..\..\Views\PageMonitor.xaml"
                this.ButonDown.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ButonDown_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 5:
                this.ButonLeft = ((System.Windows.Controls.Button)(target));

            #line 72 "..\..\..\Views\PageMonitor.xaml"
                this.ButonLeft.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButonLeft_PreviewMouseLeftButtonDown);

            #line default
            #line hidden

            #line 72 "..\..\..\Views\PageMonitor.xaml"
                this.ButonLeft.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ButonLeft_PreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 6:
                this.ButonRight = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\..\Views\PageMonitor.xaml"
                this.ButonRight.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ButonRight_PreviewMouseLeftButtonUp);

            #line default
            #line hidden

            #line 73 "..\..\..\Views\PageMonitor.xaml"
                this.ButonRight.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButonRight_PreviewMouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:
                this.GridAlert = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.GridAlarm = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.LabPrompt = ((System.Windows.Controls.Label)(target));
                return;

            case 10:

            #line 148 "..\..\..\Views\PageMonitor.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 149 "..\..\..\Views\PageMonitor.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 150 "..\..\..\Views\PageMonitor.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClose_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.ChkCamera = ((Utils.BulletCheckBox)(target));

            #line 175 "..\..\..\Views\PageMonitor.xaml"
                this.ChkCamera.Click += new System.Windows.RoutedEventHandler(this.ChkCamera_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.LabTempValue = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.LabHumiValue = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.LabFireState = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.LabSmokeState = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }