private void btAreaShape_Click(object sender, EventArgs e) { FrmPatchLineAndArea frm = new FrmPatchLineAndArea(esriSymbologyStyleClass.esriStyleClassAreaPatches); frm.ShowDialog(); if (frm.DialogResult == DialogResult.OK) { pAreaPatch = frm.GetAreaPatch(); if (pAreaPatch != null) { this.btAreaShape.Image = frm.GetImageByGiveSymbolAfterSelectItem(btAreaShape.Width, btAreaShape.Height); } } }
private void btAreaShape_Click(object sender, EventArgs e) { FrmPatchLineAndArea Frm = new FrmPatchLineAndArea(esriSymbologyStyleClass.esriStyleClassAreaPatches); Frm.ShowDialog(); if (Frm.DialogResult == DialogResult.OK) { pAreaPatch = Frm.GetAreaPatch(); if (pAreaPatch != null) { //pLegendFormat.DefaultAreaPatch = pAreaPatch; btAreaShape.Image = Frm.GetImageByGiveSymbolAfterSelectItem(btAreaShape.Width - 14, btAreaShape.Height - 14); } } }