From 945c367c8fe157fab69619c5ad8316fbb1f4abc1 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:01:48 +0000 Subject: [PATCH] Added comments to describe functions in frmContactEditorVendor. --- source/contacteditor/frmContactEditorVendor.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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(); + } -- 2.39.5