summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-20 17:22:47 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-05-20 17:22:47 -0300
commit30181ca0ae73f5f7f1856ac289db8fcf849c9a84 (patch)
tree4b8de3270f4157e6dfbce05bc404cbc29333e969 /Project/MainFrame.cpp
parent7a556cd67b60f70b9779d298ee687f66c859a529 (diff)
downloadPSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.gz
PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.tar.xz
PSP.git-30181ca0ae73f5f7f1856ac289db8fcf849c9a84.zip
Electromechanical class and several methods implemented
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index 87c547e..df9fe52 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -247,7 +247,14 @@ void MainFrame::OnPowerFlowClick(wxRibbonButtonBarEvent& event)
void MainFrame::OnProjectSettingsClick(wxRibbonButtonBarEvent& event) {}
void MainFrame::OnRedoClick(wxRibbonButtonBarEvent& event) {}
void MainFrame::OnResetVoltagesClick(wxRibbonButtonBarEvent& event) {}
-void MainFrame::OnRunStabilityClick(wxRibbonButtonBarEvent& event) {}
+void MainFrame::OnRunStabilityClick(wxRibbonButtonBarEvent& event)
+{
+ Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage());
+ if(workspace) {
+ workspace->RunStability();
+ }
+}
+
void MainFrame::OnSCPowerClick(wxRibbonButtonBarEvent& event)
{
Workspace* workspace = static_cast<Workspace*>(m_auiNotebook->GetCurrentPage());