Exemplo n.º 1
0
 private void cBoxSubHead_CheckedChanged(object sender, EventArgs e)
 {
     //用户设置副标题字段
     if (cBoxSubHead.Checked)
     {
         FrmSubHeadFieldSet fmSHFS = new FrmSubHeadFieldSet(LstFields);
         if (fmSHFS.ShowDialog(this) == DialogResult.OK)
         {
             ResSubHeadFields = fmSHFS.ResField;
         }
     }
 }
Exemplo n.º 2
0
 private void btnTitleFd_Click(object sender, EventArgs e)
 {
     //用户设置主标题字段
     if (ExtentFeature != null)
     {
         FrmSubHeadFieldSet fmSHFS = new FrmSubHeadFieldSet(LstFields);
         if (fmSHFS.ShowDialog(this) == DialogResult.OK)
         {
             ResTitleField = fmSHFS.ResField;
             int idx = ExtentFeature.Fields.FindField(ResTitleField);
             if (idx != -1)
             {
                 string val = ExtentFeature.get_Value(idx).ToString();
                 if (val != "")
                 {
                     rTxtTitle.Text = val;
                 }
             }
         }
     }
 }