void EditCppCodeEvent::OncancelBtClick(wxCommandEvent& event) { EndModal(0); }
void VampEffectDialog::OnCancel(wxCommandEvent & WXUNUSED(event)) { EndModal(FALSE); }
void wxsArrayStringEditorDlg::OnCancel(cb_unused wxCommandEvent& event) { EndModal(wxID_CANCEL); }
void EditHouseDialog::OnClickCancel(wxCommandEvent& WXUNUSED(event)) { // Just close this window EndModal(0); }
void AutocloseMessageBox::OnUnlock(wxTimerEvent& /*evt*/) { EndModal(wxID_OK); }
void ExportMixerDialog::OnCancel(wxCommandEvent &event) { EndModal( wxID_CANCEL ); }
void LevellerDialog::OnOk(wxCommandEvent &event) { TransferDataFromWindow(); EndModal(true); }
void DIALOG_NON_COPPER_ZONES_EDITOR::OnCancelClick( wxCommandEvent& event ) { // do not save the edits. EndModal( ZONE_ABORT ); }
void ShareTransactionDialog::OnOk(wxCommandEvent& WXUNUSED(event)) { double num_shares = 0; if (!m_share_num_ctrl->checkValue(num_shares)) { return; } double share_price = 0; if (!m_share_price_ctrl->checkValue(share_price)) { return; } double commission = 0; m_commission_ctrl->GetDouble(commission); double current_price = share_price; if (m_stock && ((m_stock->PURCHASEPRICE != m_stock->CURRENTPRICE) && (m_stock->PURCHASEPRICE != 0))) { current_price = m_stock->CURRENTPRICE; } // allow for loyalty shares. These are "Free" bool loyalty_shares = (share_price == 0) && (num_shares > 0); if (m_stock && loyalty_shares) { current_price = m_stock->CURRENTPRICE; } // Only update the current price when adding new shares if (!m_checking_entry) { m_stock->CURRENTPRICE = current_price; Model_Stock::instance().save(m_stock); } if (m_transaction_panel->ValidCheckingAccountEntry()) { // addition or removal shares if ((num_shares > 0) && (m_transaction_panel->TransactionType() == Model_Checking::DEPOSIT)) { // we need to subtract the number of shares for a sale num_shares = num_shares * -1; } int checking_id = m_transaction_panel->SaveChecking(); /* // The PURCHASEDATE, field in STOCK table becomes obsolete. // NUMSHARES, PURCHASEPRICE and COMMISSION fields in the Stocks table are used as // a summary and allows Stock history to work in its current form. // The Shares table now maintains share_num, share_price, and commission on the // date of purchase, together with a record in the checking account table. */ if (!m_translink_entry) { Model_Translink::SetStockTranslink(m_stock->STOCKID , checking_id, m_transaction_panel->CheckingType()); } Model_Shareinfo::ShareEntry(checking_id, num_shares, share_price, commission, m_share_lot_ctrl->GetValue()); Model_Translink::UpdateStockValue(m_stock); if (!loyalty_shares) { Model_StockHistory::instance().addUpdate(m_stock->SYMBOL, m_transaction_panel->TransactionDate(), m_stock->CURRENTPRICE, Model_StockHistory::MANUAL); } } else { mmErrorDialogs::MessageWarning(this, _("Invalid Transaction"), m_dialog_heading); return; } EndModal(wxID_OK); }
void ChooseAutomatismDialog::OnChoisirBtClick(wxCommandEvent& event) { automatismChosen = automatismsList->GetStringSelection(); EndModal(1); }
void ChooseAutomatismDialog::OnCancelBtClick(wxCommandEvent& event) { EndModal(0); }
void moNewEffectDialog::OnCancelButtonClick(wxCommandEvent& event) { EndModal( wxID_CANCEL ); }
void moNewEffectDialog::OnOkButtonClick(wxCommandEvent& event) { if (CheckData()) EndModal( wxID_OK ); }
void scanning_for_playlists_dlg::on_scanner_finished(wxCommandEvent &) { EndModal(m_aborted ? wxID_CANCEL : wxID_OK); }
void DIALOG_PAGES_SETTINGS::OnCancelClick( wxCommandEvent& event ) { EndModal( false ); }
void PathBehaviorEditor::OncancelBtClick(wxCommandEvent& event) { EndModal(0); }
void ExportMixerDialog::OnOk(wxCommandEvent &event) { EndModal( wxID_OK ); }
void AddBotDialog::OnClose( wxCommandEvent& /*event*/ ) { EndModal( wxID_CANCEL ); }
void wxsFontEditorDlg::OnButton2Click(wxCommandEvent& event) { StoreData(Data); EndModal(wxID_OK); }
void AddBotDialog::OnAddBot( wxCommandEvent& /*event*/ ) { sett().SetLastAI( m_ai->GetStringSelection() ); EndModal( wxID_OK ); }
void LevellerDialog::OnCancel(wxCommandEvent &event) { EndModal(false); }
/* PaletteDialog::onLeftDoubleClick * Called when the palette canvas is double clicked *******************************************************************/ void PaletteDialog::onLeftDoubleClick(wxMouseEvent& e) { EndModal(wxID_OK); }
void TimedMessageBox::OnOptionsNo(wxCommandEvent&) { EndModal(wxID_NO); }
void WConfirmCalibration::OnButton3Click( wxCommandEvent& event ) { m_timer.Stop(); EndModal(BUTTON_REPEAT); event.Skip(); }
void VampEffectDialog::OnOK(wxCommandEvent & WXUNUSED(event)) { EndModal(TRUE); }
/** * Close the editor without updating the object */ void TiledSpriteObjectEditor::OncancelBtClick(wxCommandEvent& event) { EndModal(0); }
void dlgSelectConnection::OnCancel(wxCommandEvent& ev) { EndModal(wxID_CANCEL); }
void EditForEachEvent::OncancelBtClick(wxCommandEvent& event) { EndModal(0); }
void CIniEditor::OnbtnCancelClick(wxCommandEvent& event) { EndModal( 0 ); }
void CocoonJSUploadDialog::OnCloseBtClicked(wxCommandEvent& event) { EndModal(1); }