Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="info"></param>
 public UCCurveSelectCondition( GRStationCurveInfo info )
 {
     InitializeComponent();
     InitControls();
     this.StationCurveInfo = info;
     _adeState = ADEStatus.Edit;
 }
Пример #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="gp"></param>
        /// <param name="gpconfig"></param>
        /// <param name="stationInfo"></param>
        private void Draw(GraphPane gp, GraphPaneConfig gpconfig, GRStationCurveInfo stationInfo)
        {
            DataTable tbl = CZGRQRCApp.Default.DBI.ExecuteGRDataTable(
                stationInfo.StationName, stationInfo.Begin, stationInfo.End);
            gpconfig.ConfigGraphPane(gp, stationInfo);

            GRDataCurveConfigCollection ccs = stationInfo.GRCurveType.GRDataCurveConfigCollection;

            foreach (GRDataCurveConfig cc in ccs )
            {
                IPointList pts = GetPointList(tbl, cc);
                string dataCurveName = GRData.GetGRDataText(cc.GRDataEnum);
                gp.AddCurve(dataCurveName, pts, cc.Color, cc.SymbolType);
            }
        }
Пример #3
0
        //private DateTime Com
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void okButton_Click(object sender, EventArgs e)
        {
            if (_adeState == ADEStatus.Add)
            {
                _stationCurveInfo = new GRStationCurveInfo();
            }
                _stationCurveInfo.StationName = this.cmbStationName.Text;
                _stationCurveInfo.GRCurveType = (GRCurveType)this.cmbCurveName.SelectedItem;

                _stationCurveInfo.Begin = this.Begin;
                _stationCurveInfo.End = this.End;

            //}
            //else if (_adeState == ADEState.Edit)
            //{
            //}
            this.DialogResult = DialogResult.OK;
            this.Close();
        }