public DesignControlList(DIYReport.UserDIY.DesignSection pSection) { _Section = pSection; _DataObj = pSection.DataObj.RptObjList; foreach (DIYReport.Interface.IRptSingleObj obj in _DataObj) { DesignControl ctl = new DesignControl(obj); this.Add(ctl); } }
private void ParentForm_KeyDown(object sender, KeyEventArgs e) { DIYReport.UserDIY.DesignEnviroment.PressShiftKey = e.KeyValue == 16; DIYReport.UserDIY.DesignEnviroment.PressCtrlKey = e.KeyValue == 17; //判断用户是否按下 Delete 键 if (e.KeyValue == 46) { DeleteSelectedControls(true); } //处理方向键 DIYReport.UserDIY.DesignSection sSection = _SectionList.GetActiveSection(); if (sSection != null) { sSection.DesignControls.ProcessArrowKeyDown(e.KeyValue, DIYReport.UserDIY.DesignEnviroment.PressCtrlKey); } }