Exemplo n.º 1
0
 // ’确认‘按钮
 private void myPointSymbolSure_Click(object sender, EventArgs e)
 {
     if (myPointComboBox.SelectedIndex == 0)
     {
         MarkerType = enumMarkerType.SimpleMarker;
         symbolSize = Convert.ToInt32(myPointSymbolSize.Text);
     }
     else if (myPointComboBox.SelectedIndex == 1)
     {
         MarkerType = enumMarkerType.PictureMarker;
     }
     else if (myPointComboBox.SelectedIndex == 2)
     {
         MarkerType = enumMarkerType.Text;
     }
     this.DialogResult = DialogResult.OK;
 }
Exemplo n.º 2
0
 private void myFillSymSureBtn_Click(object sender, EventArgs e)
 {
     if (myFillSymbolComboBox.SelectedIndex == 0)
     {
         MarkerType               = enumMarkerType.SimpleMarker;
         simpleFillSymbol.Color   = resultColor;
         simpleLineSymbol.Color   = outlineColor;
         simpleFillSymbol.Outline = simpleLineSymbol;
     }
     else if (myFillSymbolComboBox.SelectedIndex == 1)
     {
         MarkerType = enumMarkerType.PictureMarker;
         //simpleFillSymbol.Outline = simpleLineSymbol;
         pictureFillSymbol         = new PictureFillSymbol(ImgUri);
         pictureFillSymbol.Outline = simpleLineSymbol;
     }
     this.DialogResult = DialogResult.OK;
 }
Exemplo n.º 3
0
 private void myPointSymbolSure_Click(object sender, RoutedEventArgs e)
 {
     if (myPointComboBox.SelectedIndex == 0)
     {
         MarkerType = enumMarkerType.SimpleMarker;
         if (myPointSymbolSize.Text != "")
         {
             simplePointSymbol.Size = Convert.ToInt32(myPointSymbolSize.Text);
         }
     }
     else if (myPointComboBox.SelectedIndex == 1)
     {
         MarkerType = enumMarkerType.PictureMarker;
         PictureMarkerSymbol pm = new PictureMarkerSymbol(ImgUri);
         pm.Width        = 20;
         pm.Height       = 20;
         ptSymbol.Symbol = pm;
     }
     else if (myPointComboBox.SelectedIndex == 2)
     {
         MarkerType = enumMarkerType.Text;
     }
     w.Close();
 }
Exemplo n.º 4
0
 // 确定按钮——符号渲染 / 窗口关闭
 private void myFillSymSureBtn_Click(object sender, RoutedEventArgs e)
 {
     if (myFillSymbolComboBox.SelectedIndex == 0)
     {
         MarkerType               = enumMarkerType.SimpleMarker;
         simpleFillSymbol.Color   = resultColor;
         simpleLineSymbol.Color   = outlineColor;
         simpleFillSymbol.Outline = simpleLineSymbol;
         fillSymbol.Symbol        = simpleFillSymbol;
     }
     else if (myFillSymbolComboBox.SelectedIndex == 1)
     {
         MarkerType = enumMarkerType.PictureMarker;
         if (ImgUri == null)
         {
             w.Close();
             return;
         }
         pictureFillSymbol         = new PictureFillSymbol(ImgUri);
         pictureFillSymbol.Outline = simpleLineSymbol;
         fillSymbol.Symbol         = pictureFillSymbol;
     }
     w.Close();
 }