private void btnNorthMarkerSymbolSelector_Click(object sender, EventArgs e) { try { frmSymbolSelector selector = new frmSymbolSelector(); if (selector != null) { selector.SetStyleGallery(this.m_pSG); selector.SetSymbol((this.m_pNorthArrow as IMarkerNorthArrow).MarkerSymbol); if (selector.ShowDialog() == DialogResult.OK) { (this.m_pNorthArrow as IMarkerNorthArrow).MarkerSymbol = selector.GetSymbol() as IMarkerSymbol; this.m_CanDo = false; this.Init(); this.m_CanDo = true; this.ValueChanged(); } } } catch { } }
private void btnChangeSymbol_Click(object sender, EventArgs e) { try { ILineSymbol lineSymbol = this.m_pSymbolBorder.LineSymbol; frmSymbolSelector selector = new frmSymbolSelector(); selector.SetStyleGallery(_context.StyleGallery); selector.SetSymbol(lineSymbol); if (selector.ShowDialog() == DialogResult.OK) { lineSymbol = selector.GetSymbol() as ILineSymbol; this.m_pSymbolBorder.LineSymbol = lineSymbol; this.m_CanDo = false; this.SetColorEdit(this.colorEdit1, lineSymbol.Color); this.txtWidth.Value = (decimal)lineSymbol.Width; this.m_CanDo = true; this.m_IsPageDirty = true; this.refresh(e); } } catch { } }
private void btnSymbolSelector_Click(object sender, EventArgs e) { try { ITextSymbol pSym = m_pScaleText.Symbol; frmSymbolSelector selector = new frmSymbolSelector(); if (selector != null) { selector.SetStyleGallery(this.m_pSG); selector.SetSymbol(pSym); if (selector.ShowDialog() == DialogResult.OK) { pSym = selector.GetSymbol() as ITextSymbol; m_pScaleText.Symbol = pSym; this.SetTextSymbol(pSym); ScaleTextEventsClass.ScaleTextChage(this); this.ValueChanged(); } } } catch { } }
private void btnSymbol2Selector_Click(object sender, EventArgs e) { try { if (m_pScaleBar is IDoubleFillScaleBar) { ISymbol pSym = (m_pScaleBar as IDoubleFillScaleBar).FillSymbol2 as ISymbol; frmSymbolSelector selector = new frmSymbolSelector(); if (selector != null) { selector.SetStyleGallery(this.m_pSG); selector.SetSymbol(pSym); if (selector.ShowDialog() == DialogResult.OK) { (m_pScaleBar as IDoubleFillScaleBar).FillSymbol2 = selector.GetSymbol() as IFillSymbol; this.ValueChanged(); } } } } catch { } }