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

            #line 9 "..\..\MonitorWindow.xaml"
                ((TermoControllerMonitor.MonitorWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.MonitorGid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 4:
                this.LabeltempOffHeater = ((System.Windows.Controls.Label)(target));
                return;

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

            case 6:
                this.LabeltempOffHeater_Copy = ((System.Windows.Controls.Label)(target));
                return;

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

            case 8:
                this.LabeltempOffHeater_Copy1 = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.gAGaugeFanExt = ((System.Windows.Forms.AGauge)(target));
                return;

            case 10:
                this.gAGaugeFanInt = ((System.Windows.Forms.AGauge)(target));
                return;

            case 11:
                this.LabeltempOffHeater_Copy2 = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.LabeltempOffHeater_Copy3 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        private void ClearGauge(int idx)
        {
            if (lblGuage1.InvokeRequired)
            {
                ClearDataCallback d = new ClearDataCallback(ClearGauge);
                this.Invoke(d, new object[] { idx });
            }
            else
            {
                ZedGraph.ZedGraphControl    currZG    = null;
                System.Windows.Forms.Label  currLabel = null;
                System.Windows.Forms.AGauge currGauge = null;

                if (idx == 1)
                {
                    currZG    = zg1;
                    currLabel = lblGuage1;
                    currGauge = gauge1;
                }

                if (idx == 2)
                {
                    currZG    = zg2;
                    currLabel = lblGuage2;
                    currGauge = gauge2;
                }

                if (idx == 3)
                {
                    currZG    = zg3;
                    currLabel = lblGuage3;
                    currGauge = gauge3;
                }

                if (currZG != null)
                {
                    GraphPane myPane = currZG.GraphPane;
                    myPane.Title.Text = "No data.";
                    myPane.CurveList.Clear();// clear the graph
                    currZG.Invalidate();
                    currZG.Refresh();
                }

                if (currLabel != null)
                {
                    currLabel.Text = "No data";
                }

                if (currGauge != null)
                {
                    currGauge.Value = 0;
                }
            }
        }
Example #3
0
 public AGaugeRangeCollection(AGauge sender)
 {
     Owner = sender;
 }
Example #4
0
 public void SetOwner(AGauge value)
 {
     Owner = value;
 }
Example #5
0
 public AGaugeLabelCollection(AGauge sender)
 {
     Owner = sender;
 }
 public AGaugeRangeCollection(AGauge sender)
 {
     m_Owner = sender;
 }