Beispiel #1
0
        private static void OnValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ParaTable pt = o as ParaTable;

            if (pt != null)
            {
                pt.line4.Stroke = e.NewValue as Brush;
            }
        }
Beispiel #2
0
        public void AddCurve(Model.Curve curve, Data.CurveData data, int index)
        {
            curveList.Add(curve);
            #region pt
            ParaTable pt = new ParaTable();
            pt.Tag = curve.Id;
            pt.SetCurve(curve);
            #endregion
            #region dp
            UC_Dp.DepthBaseValue  = CurveXMinValue;
            UC_Dp.DepthDeltaValue = MaxUnitLength;
            #endregion
            CurveViewManager manager = CreateManager(curve, data, this);
            #region index
            switch (index)
            {
            case 0:
            {
                STK_CurveGroupContainer1.Children.Add(pt);
                UC_Gm1.AddShape(curve, manager);
            } break;

            case 1:
            {
                STK_CurveGroupContainer2.Children.Add(pt);
                UC_Gm2.AddShape(curve, manager);
            } break;

            case 2:
            {
                STK_CurveGroupContainer3.Children.Add(pt);
                UC_Gm3.AddShape(curve, manager);
            } break;

            default: { throw new Exception(); };
            }
            #endregion
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.UC_PT = ((LoggingDataManager.WPFGraph.ParaTable)(target));
                return;

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

            case 5:
                this.UC_Gm = ((LoggingDataManager.WPFGraph.GridMap)(target));
                return;

            case 6:
                this.CA_OverLay = ((System.Windows.Controls.Canvas)(target));
                return;

            case 7:
                this.REC_Overlay = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.UC_Dp = ((LoggingDataManager.WPFGraph.DeepPanel)(target));
                return;

            case 9:
                this.BTN_ZoomIn = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.BTN_Back = ((System.Windows.Controls.Button)(target));
                return;

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

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

            case 13:
                this.CKB_ShowGrid = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:
                this.TBK_dEPTH = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.SL_Main = ((System.Windows.Controls.Slider)(target));
                return;

            case 16:
                this.TBK_Zoom = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.SL_Zoom = ((System.Windows.Controls.Slider)(target));
                return;

            case 18:
                this.line = ((System.Windows.Shapes.Line)(target));
                return;

            case 19:
                this.line1 = ((System.Windows.Shapes.Line)(target));
                return;

            case 20:
                this.line2 = ((System.Windows.Shapes.Line)(target));
                return;

            case 21:
                this.line3 = ((System.Windows.Shapes.Line)(target));
                return;
            }
            this._contentLoaded = true;
        }