X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcontacteditor%2FfrmContactEditorVendor.cpp;h=2ca399b11e5d7a7780ca568216079313670e1828;hb=074e2db3331d35762f1d2dcf06d98f15200fc225;hp=ce566483524d31a618a8e8753ceb5594ae75049a;hpb=3b1da98385debe24001f0432f8d6f674f2710c31;p=xestiaab%2F.git diff --git a/source/contacteditor/frmContactEditorVendor.cpp b/source/contacteditor/frmContactEditorVendor.cpp index ce56648..2ca399b 100644 --- a/source/contacteditor/frmContactEditorVendor.cpp +++ b/source/contacteditor/frmContactEditorVendor.cpp @@ -29,6 +29,7 @@ frmContactEditorVendorADT( parent ) void frmContactEditorVendor::SetEditorMode(bool EditMode) { + // Set if the editor is adding or editing an address. // FALSE = Add // TRUE = Edit @@ -100,6 +101,8 @@ void frmContactEditorVendor::SetEditorMode(bool EditMode) void frmContactEditorVendor::ProcessAction( wxCommandEvent& event ) { + // Process action. + if (EditorMode == FALSE){ wxString strValue; @@ -182,7 +185,8 @@ void frmContactEditorVendor::SetupPointers( std::map *VendorList, wxListCtrl *VendorListCtrl, int VendorIndex ) { - + // Setup the pointers. + VendorListPtr = VendorList; VendorListPENPtr = VendorListPEN; VendorListElementPtr = VendorListElement; @@ -193,5 +197,9 @@ void frmContactEditorVendor::SetupPointers( std::map *VendorList, void frmContactEditorVendor::CloseWindow( wxCommandEvent& event ) { + + // Close the window. + this->Close(); + }