Ejemplo n.º 1
0
 private void btnLabelSymbolSelector_Click(object sender, EventArgs e)
 {
     try
     {
         ITextSymbol       labelSymbol = ScaleBarFormatPropertyPage.m_pScaleBar.LabelSymbol;
         frmSymbolSelector selector    = new frmSymbolSelector();
         if (selector != null)
         {
             selector.SetStyleGallery(this.m_pSG);
             selector.SetSymbol(labelSymbol);
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 labelSymbol = selector.GetSymbol() as ITextSymbol;
                 ScaleBarFormatPropertyPage.m_pScaleBar.LabelSymbol = labelSymbol;
                 this.ValueChanged();
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 private void btnSubdivisionMarkSymbol_Click(object sender, EventArgs e)
 {
     try
     {
         IScaleMarks       pScaleBar             = ScaleBarFormatPropertyPage.m_pScaleBar as IScaleMarks;
         ILineSymbol       subdivisionMarkSymbol = pScaleBar.SubdivisionMarkSymbol;
         frmSymbolSelector selector = new frmSymbolSelector();
         if (selector != null)
         {
             selector.SetStyleGallery(this.m_pSG);
             selector.SetSymbol(subdivisionMarkSymbol);
             if (selector.ShowDialog() == DialogResult.OK)
             {
                 subdivisionMarkSymbol           = selector.GetSymbol() as ILineSymbol;
                 pScaleBar.SubdivisionMarkSymbol = subdivisionMarkSymbol;
                 this.ValueChanged();
             }
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 3
0
 private void btnChangeSymbol_Click(object sender, EventArgs e)
 {
     try
     {
         IFillSymbol       fillSymbol = this.m_pSymbolBackground.FillSymbol;
         frmSymbolSelector selector   = new frmSymbolSelector();
         selector.SetStyleGallery(_context.StyleGallery);
         selector.SetSymbol(fillSymbol);
         if (selector.ShowDialog() == DialogResult.OK)
         {
             fillSymbol = selector.GetSymbol() as IFillSymbol;
             this.m_pSymbolBackground.FillSymbol = fillSymbol;
             this.m_CanDo = false;
             this.Init();
             this.m_CanDo       = true;
             this.m_IsPageDirty = true;
             this.refresh(e);
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 4
0
 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
     {
     }
 }
Ejemplo n.º 5
0
 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
     {
     }
 }
Ejemplo n.º 6
0
 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
     {
     }
 }
Ejemplo n.º 7
0
 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
     {
     }
 }