예제 #1
0
        public override void Draw(Graphics g, DIYReport.Interface.IRptSingleObj dataObj)
        {
            RptCheckBox checkBox = dataObj as RptCheckBox;

            if (checkBox == null)
            {
                return;
            }
            if (checkBox.BingField)
            {
                string fieleName  = checkBox.Checked?RptDrawHelper.CHECK_BOX_FILE : RptDrawHelper.UN_CHECK_BOX_FILE;
                Image  checkImage = RptDrawHelper.CreateBitmapFromResources(fieleName);

                base.DrawImageUnscaled(g, dataObj, checkImage);

                try{
                    checkImage.Dispose();
                }
                catch {}
            }
            else
            {
                this.DrawBingFieldName(g, checkBox, checkBox.FieldName);
            }
        }
예제 #2
0
        public override void Draw(Graphics g, DIYReport.Interface.IRptSingleObj dataObj)
        {
            RptSubReport subreport = dataObj as  RptSubReport;

            if (subreport == null)
            {
                return;
            }

            string fieleName   = RptDrawHelper.SUB_REPORT_FILE;
            Image  reportImage = RptDrawHelper.CreateBitmapFromResources(fieleName);

            this.DrawImageUnscaled(g, subreport, reportImage);
            try{
                reportImage.Dispose();
            }
            catch {}
        }