Пример #1
0
        private ToolStripMenuItem m_menuItemExportToExcel;  //导出到Excel表格

        /// <summary>
        /// 构造方法初始话
        /// </summary>
        public CDataGridViewWaterSpeed() : base()
        {
            // 设定标题栏,默认有个隐藏列,默认非编辑模式
            this.Header = new string[]
            {
                CS_StationID, CS_StationName, CS_TimeCollected, CS_WaterStage, CS_V1, CS_V2, CS_V3, CS_V4, CS_WaterFlow, CS_TimeRecvd, CS_ChannelType, CS_MsgType
            };
            this.BPartionPageEnable = false; //不启用分页功能
            m_proxyWaterSpeed       = new CSQLWaterSpeed();
        }
Пример #2
0
 public void InitDataSource(IWaterProxy proxy)
 {
     m_proxyWaterFlow  = proxy;
     m_proxyWaterSpeed = new CSQLWaterSpeed();
 }
Пример #3
0
 public void InitDataSource(ISoilDataProxy proxy)
 {
     m_proxySoilData   = proxy;
     m_proxyWaterSpeed = new CSQLWaterSpeed();
 }
Пример #4
0
 /// <summary>
 /// 初始化数据来源,绑定与数据库的数据
 /// </summary>
 /// <param name="proxy"></param>
 public void InitDataSource(IWaterSpeedProxy proxy)
 {
     ///m_proxyWater = proxy;
     m_proxySpeedWater = proxy;
 }