コード例 #1
0
ファイル: FormDayCurve.cs プロジェクト: zky001/RecordAnalyse
        public FormDayCurve()
        {
            InitializeComponent();


            this.dayCurveGroup = this.chart.AddNewGroup();
            this.dayCurveGroup.XAxes.MaxScale = 60000000 * 60L;
            this.dayCurveGroup.XAxes.MinScale = 250000;
            this.dayCurveGroup.XAxes.SetOrgTime(ChartGraph.DateTime2ChartTime(DateTime.Now), 0);
            this.dayCurveGroup.CursorType = CurveCursorType.CURSOR_CROSSLINE;
            this.dayCurveGroup.DrawPointFlagXAxesScale = 5000000;


            IList <HHDeviceGrp> types = HHDeviceManager.GetInstance().DeviceGroupsUnsort;


            foreach (HHDeviceGrp type in types)
            {
                if (type.AnalogProperties.Count > 0)
                {
                    comboBoxEdit1.Properties.Items.Add(type);
                }
            }
            if (comboBoxEdit1.Properties.Items.Count > 0)
            {
                comboBoxEdit1.SelectedIndex = 0;
            }

            dateEdit1.DateTime = DateTime.Now.Date;
        }
コード例 #2
0
        public FormSwitchCurve()
        {
            InitializeComponent();


            UltraChart.CurveGroup grp = chart.AddNewGroup();
            //chart.Attach(hWnd);
            grp.SetValueTipTimeFormat("", TipTimeType.MICROSECOND);
            grp.CursorType              = CurveCursorType.CURSOR_CROSSLINE;
            grp.XAxes.MaxScale          = 4000000;
            grp.XAxes.MinScale          = 20000;
            grp.XAxes.XAxesMode         = XAxesMode.Relative;
            grp.DrawPointFlagXAxesScale = 200000;


            IList <HHDeviceGrp> devGrps = HHDeviceManager.GetInstance().DeviceGroupsUnsort;

            foreach (HHDeviceGrp type in devGrps)
            {
                for (int i = 0; i < type.CurveProperties.Count; i++)
                {
                    comboBoxEdit1.Properties.Items.Add(type.CurveProperties[i]);
                }
            }
            if (comboBoxEdit1.Properties.Items.Count > 0)
            {
                comboBoxEdit1.SelectedIndex = 0;
            }
        }