newntui/commonresources/src/attributesdialog.cpp
//-----------------------------------------------------------------------------------------
// Reply to the left arrow button click. Will remove the attribute from the right 
// destination column and will place it to the left source column. 
//-----------------------------------------------------------------------------------------
Reply to the left arrow button click. Will remove the attribute from the right
destination column and will place it to the left source column.
Reply to the left arrow button click . Will remove the attribute from the right destination column and will place it to the left source column .
void CAttributesDialog::OnOneToSource() {
CString readableName;
CString accessName;
int index;
	if(m_QueryResults==NULL) return;
    index = m_Dest.GetCurSel();
    if(index<0) return;
    m_Dest.GetText(index,readableName);
    accessName=AccessFromName(readableName);
    m_Dest.DeleteString(index);
    m_Source.AddString(readableName); 
    m_Dest.SetCurSel(index);
    m_QueryResults->RemoveAttribute(readableName,accessName);
    m_Durty=TRUE;
}
void CAttributesDialog :: OnOneToSource ( ) { CString readableName ; CString accessName ; int index ; if ( m_QueryResults == NULL ) return ; index = m_Dest . GetCurSel ( ) ; if ( index < 0 ) return ; m_Dest . GetText ( index , readableName ) ; accessName = AccessFromName ( readableName ) ; m_Dest . DeleteString ( index ) ; m_Source . AddString ( readableName ) ; m_Dest . SetCurSel ( index ) ; m_QueryResults -> RemoveAttribute ( readableName , accessName ) ; m_Durty = TRUE ; }
Reply to the left arrow button click.
Reply to the left arrow button click .