From: Steve Brokenshire Date: Sun, 13 Mar 2016 10:01:48 +0000 (+0000) Subject: Added comments to describe functions in frmContactEditorVendor. X-Git-Tag: release-0.11~119 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=945c367c8fe157fab69619c5ad8316fbb1f4abc1;p=xestiaab%2F.git Added comments to describe functions in frmContactEditorVendor. --- 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(); + }