Exemplo n.º 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();
            }
        }
Exemplo n.º 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;
        }