Guest User

Untitled

a guest
Oct 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <ComboBox Name="cbForms" SelectionChanged="cbForms_SelectionChanged" HorizontalAlignment="Left" Margin="10,289,0,0" VerticalAlignment="Top" Width="139">
  2. <ComboBoxItem IsSelected="True">Polygon</ComboBoxItem>
  3. <ComboBoxItem>Rechteck</ComboBoxItem>
  4. <ComboBoxItem>Dreieck</ComboBoxItem>
  5. <ComboBoxItem>Kreis</ComboBoxItem>
  6. </ComboBox>
  7.  
  8. private void cbForms_SelectionChanged(object sender, SelectionChangedEventArgs e)
  9. {
  10. string text = cbForms.Text;
  11. switch (text)
  12. {
  13. case "Polygon":
  14. {
  15. commandText = "SELECT f.bezeichnung, t.X, t.Y, t.id FROM figure05 f, TABLE(SDO_UTIL.GETVERTICES(f.shape)) t";
  16. lblAnz.Content = anzPolygon.ToString();
  17. break;
  18. }
Add Comment
Please, Sign In to add comment