diff options
Diffstat (limited to 'Project/SimulationsSettingsForm.cpp')
-rw-r--r-- | Project/SimulationsSettingsForm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Project/SimulationsSettingsForm.cpp b/Project/SimulationsSettingsForm.cpp index b7878d5..2947638 100644 --- a/Project/SimulationsSettingsForm.cpp +++ b/Project/SimulationsSettingsForm.cpp @@ -41,6 +41,7 @@ SimulationsSettingsForm::SimulationsSettingsForm(wxWindow* parent, PropertiesDat } m_checkBoxFaultAfterPF->SetValue(data.faultAfterPowerFlow); m_checkBoxSCPowerAfterPF->SetValue(data.scPowerAfterPowerFlow); + m_checkBoxTHDAfterPF->SetValue(data.harmDistortionAfterPowerFlow); switch(data.powerFlowMethod) { case GAUSS_SEIDEL: { m_choicePFMethod->SetSelection(0); @@ -107,6 +108,7 @@ bool SimulationsSettingsForm::ValidateData() } data.faultAfterPowerFlow = m_checkBoxFaultAfterPF->GetValue(); data.scPowerAfterPowerFlow = m_checkBoxSCPowerAfterPF->GetValue(); + data.harmDistortionAfterPowerFlow = m_checkBoxTHDAfterPF->GetValue(); switch(m_choicePFMethod->GetSelection()) { case 0: { data.powerFlowMethod = GAUSS_SEIDEL; |