Beispiel #1
0
        private void CheckBoxEntity()
        {
            GMapp.Overlays.Clear();

            if (CheckBoxAllEntity.IsChecked == true) //subs
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();

                Substations();
                Generator();
                Breakers();
                EnergyConsumers();
                EnergySources();
            }

            if (CheckBoxBreakerEntity.IsChecked == true)
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();
                Breakers();
            }

            if (CheckBoxEnergyConsumerEntity.IsChecked == true)
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();
                EnergyConsumers();
            }

            if (CheckBoxEnergySourceEntity.IsChecked == true)
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();
                EnergySources();
            }

            if (CheckBoxGeneratorEntity.IsChecked == true)
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();
                Generator();
            }


            if (CheckBoxSubstitutionEntuty.IsChecked == true)
            {
                GMapp.Refresh();
                GMapp.ReloadMap();
                GMapp.Show();
                Substations();
            }
        }
Beispiel #2
0
        private void OptionsButton_Copy_Click(object sender, RoutedEventArgs e)
        {
            this.GMapp.Overlays.Clear();
            GMapp.ReloadMap();
            GMapp.Refresh();

            CheckBoxSubstitutionEntuty.IsChecked   = false;
            CheckBoxGeneratorEntity.IsChecked      = false;
            CheckBoxAllEntity.IsChecked            = false;
            CheckBoxBreakerEntity.IsChecked        = false;
            CheckBoxEnergyConsumerEntity.IsChecked = false;
            CheckBoxEnergySourceEntity.IsChecked   = false;
        }
Beispiel #3
0
 //Get clicked coordinates
 private void GMapp_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     double lat = GMapp.FromLocalToLatLng(e.X, e.Y).Lat;
     double lon = GMapp.FromLocalToLatLng(e.X, e.Y).Lng;
 }