示例#1
0
 private void MyPlaceVisiblePixelSizeMenuItem_Click(object sender, EventArgs e)
 {
     GSOLayer layer = (GSOLayer)globeControl1.Globe.MemoryLayer;
     if (layer != null)
     {
         FrmSetObjectVisiblePixelSize dlg = new FrmSetObjectVisiblePixelSize();
         dlg.m_dMaxVisiblePixelSize = layer.ObjectMaxVisiblePixelSize;
         dlg.m_dMinVisiblePixelSize = layer.ObjectMinVisiblePixelSize;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             layer.ObjectMaxVisiblePixelSize = dlg.m_dMaxVisiblePixelSize;
             layer.ObjectMinVisiblePixelSize = dlg.m_dMinVisiblePixelSize;
         }
     }
 }
示例#2
0
 private void MenuItemVisiblePixelSize_Click(object sender, EventArgs e)
 {
     TreeNode node = layerNodeContexMenu.Tag as TreeNode;
     GSOLayer layer = node.Tag as GSOLayer;
     if (layer != null)
     {
         FrmSetObjectVisiblePixelSize dlg = new FrmSetObjectVisiblePixelSize();
         dlg.m_dMaxVisiblePixelSize = layer.ObjectMaxVisiblePixelSize;
         dlg.m_dMinVisiblePixelSize = layer.ObjectMinVisiblePixelSize;
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             layer.ObjectMaxVisiblePixelSize = dlg.m_dMaxVisiblePixelSize;
             layer.ObjectMinVisiblePixelSize = dlg.m_dMinVisiblePixelSize;
         }
     }
 }