summaryrefslogtreecommitdiffstats
path: root/Project/ReactiveShuntElementForm.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-06 11:37:00 -0300
commitc5636d2031b20e673441e095d90ba94942698e7c (patch)
tree30b9f15cd5d91fe11a07960154d03afc2328bf8a /Project/ReactiveShuntElementForm.cpp
parent0586ac0d34e4d8d5dd9845f2fdd212716b3004f9 (diff)
downloadPSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.gz
PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.tar.xz
PSP.git-c5636d2031b20e673441e095d90ba94942698e7c.zip
Some class enum implementation
Just for better code design: https://docs.microsoft.com/pt-br/dotnet/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types
Diffstat (limited to 'Project/ReactiveShuntElementForm.cpp')
-rw-r--r--Project/ReactiveShuntElementForm.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/Project/ReactiveShuntElementForm.cpp b/Project/ReactiveShuntElementForm.cpp
index aceba3e..a01f36e 100644
--- a/Project/ReactiveShuntElementForm.cpp
+++ b/Project/ReactiveShuntElementForm.cpp
@@ -33,13 +33,13 @@ ReactiveShuntElementForm::ReactiveShuntElementForm(wxWindow* parent, Capacitor*
case ElectricalUnit::UNIT_PU: {
m_choiceReactivePower->SetSelection(0);
} break;
- case ElectricalUnit::UNIT_VAr: {
+ case ElectricalUnit::UNIT_var: {
m_choiceReactivePower->SetSelection(1);
} break;
- case ElectricalUnit::UNIT_kVAr: {
+ case ElectricalUnit::UNIT_kvar: {
m_choiceReactivePower->SetSelection(2);
} break;
- case ElectricalUnit::UNIT_MVAr: {
+ case ElectricalUnit::UNIT_Mvar: {
m_choiceReactivePower->SetSelection(3);
} break;
default:
@@ -62,13 +62,13 @@ ReactiveShuntElementForm::ReactiveShuntElementForm(wxWindow* parent, Inductor* i
case ElectricalUnit::UNIT_PU: {
m_choiceReactivePower->SetSelection(0);
} break;
- case ElectricalUnit::UNIT_VAr: {
+ case ElectricalUnit::UNIT_var: {
m_choiceReactivePower->SetSelection(1);
} break;
- case ElectricalUnit::UNIT_kVAr: {
+ case ElectricalUnit::UNIT_kvar: {
m_choiceReactivePower->SetSelection(2);
} break;
- case ElectricalUnit::UNIT_MVAr: {
+ case ElectricalUnit::UNIT_Mvar: {
m_choiceReactivePower->SetSelection(3);
} break;
default:
@@ -117,13 +117,13 @@ bool ReactiveShuntElementForm::ValidateData()
data.reactivePowerUnit = ElectricalUnit::UNIT_PU;
} break;
case 1: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_VAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_var;
} break;
case 2: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_kVAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_kvar;
} break;
case 3: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_MVAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_Mvar;
} break;
}
@@ -141,13 +141,13 @@ bool ReactiveShuntElementForm::ValidateData()
data.reactivePowerUnit = ElectricalUnit::UNIT_PU;
} break;
case 1: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_VAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_var;
} break;
case 2: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_kVAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_kvar;
} break;
case 3: {
- data.reactivePowerUnit = ElectricalUnit::UNIT_MVAr;
+ data.reactivePowerUnit = ElectricalUnit::UNIT_Mvar;
} break;
}