예제 #1
0
        private void axSpreadsheet1_DblClick(object sender, IWebCalcEventSink_DblClickEvent e)
        {
            this.m_tp.IsSaved = false;
            this.curCell      = this.GetFirstCell(e.eventInfo.Range.Address);
            switch (this.CheckEditStyle(this.curCell))
            {
            case PPCellAttach.Option:
                this.OnShowCellProperty(null, null);
                return;

            case PPCellAttach.Process:
                this.OnInsertProcessRecord(null, null);
                return;

            case PPCellAttach.History:
                this.OnInsertModifyRecord(null, null);
                return;

            case PPCellAttach.PageIndex:
                this.OnInsertPageIndex(null, null);
                return;

            case PPCellAttach.PagesCount:
                this.OnInsertPagesCount(null, null);
                return;

            case PPCellAttach.FormSign:
            case PPCellAttach.Remark:
            case PPCellAttach.Other:
                this.OnFormSignature(null, null);
                return;

            case PPCellAttach.Picture:
                if (PPCConvert.ToPicType(PPCardCompiler.GetXmlAttr(this.GetCellValue(this.curCell), "类型")) != InterPicType.BarCode)
                {
                    this.OnInsertPicture(null, null);
                    return;
                }
                this.OnInsertBarcode(null, null);
                return;

            case PPCellAttach.Function:
                this.OnFunction(null, null);
                return;

            case PPCellAttach.Unknow:
                this.BuildContextMenu().Show(this, new Point(e.eventInfo.X, e.eventInfo.Y));
                return;
            }
        }
예제 #2
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     this.info.Type = PPCConvert.ToPicType(this.cmbPicType.Text);
     if (this.info.Type == InterPicType.SourceFile)
     {
         this.info.FileIndex = Convert.ToInt32(this.numFileIndex.Value);
     }
     else
     {
         this.info.FileIndex = -1;
     }
     this.info.CellStart = this.txtCellStart.Text.Trim();
     this.info.CellEnd   = this.txtCellEnd.Text.Trim();
     this.info.Grayscale = this.chkGrayscale.Checked;
     this.Script         = PPCardCompiler.CreateInterPicXml(this.info);
     this.PicType        = this.info.Type;
     base.DialogResult   = DialogResult.OK;
 }