Subversion Repositories DevTools

Rev

Rev 2226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2226 Rev 2228
Line 35... Line 35...
35
 
35
 
36
		AnsiString	profile;
36
		AnsiString	profile;
37
		AnsiString	securityServer;
37
		AnsiString	securityServer;
38
		AnsiString	keyNumber;
38
		AnsiString	keyNumber;
39
		AnsiString	keyVersion;
39
		AnsiString	keyVersion;
-
 
40
		AnsiString	macAlgorithm;
40
 
41
 
41
		profile = registry->ReadString( "Profile" );
42
		profile = registry->ReadString( "Profile" );
42
		if ( profile.IsEmpty() )
43
		if ( profile.IsEmpty() )
43
		{
44
		{
44
			profile = "TDS";
45
			profile = "TDS";
Line 62... Line 63...
62
			keyVersion = "-2";
63
			keyVersion = "-2";
63
		}
64
		}
64
 
65
 
65
		GenerationProfileComboBox->Text = profile;
66
		GenerationProfileComboBox->Text = profile;
66
		GenerationProfileComboBox->ItemIndex = -1;
67
		GenerationProfileComboBox->ItemIndex = -1;
-
 
68
		int index = 0;
67
		for ( int index = 0; index < GenerationProfileComboBox->Items->Count; ++index )
69
		for ( index = 0; index < GenerationProfileComboBox->Items->Count; ++index )
68
		{
70
		{
69
			if ( GenerationProfileComboBox->Items->Strings[ index ] == profile )
71
			if ( GenerationProfileComboBox->Items->Strings[ index ] == profile )
70
			{
72
			{
71
				GenerationProfileComboBox->ItemIndex = index;
73
				GenerationProfileComboBox->ItemIndex = index;
72
				break;
74
				break;
Line 74... Line 76...
74
		}
76
		}
75
 
77
 
76
		SecurityServerPipeEdit->Text = securityServer;
78
		SecurityServerPipeEdit->Text = securityServer;
77
		KeyNumberEdit->Text = keyNumber;
79
		KeyNumberEdit->Text = keyNumber;
78
 
80
 
-
 
81
		macAlgorithm = registry->ReadString( "MacAlgorithm" );
-
 
82
		if ( macAlgorithm.IsEmpty() )
-
 
83
		{
-
 
84
			macAlgorithm = "MAC";
-
 
85
		}
-
 
86
		
-
 
87
		for ( index = 0; index < MacAlgorithmComboBox->Items->Count; ++index )
-
 
88
		{
-
 
89
			if ( MacAlgorithmComboBox->Items->Strings[ index ] == macAlgorithm )
-
 
90
			{
-
 
91
				MacAlgorithmComboBox->ItemIndex = index;
-
 
92
				break;
-
 
93
			}
-
 
94
		}
-
 
95
 
79
		readProfile( *registry, profile );
96
		readProfile( *registry, profile );
80
	}
97
	}
81
	__finally
98
	__finally
82
	{
99
	{
83
		delete registry;
100
		delete registry;
Line 98... Line 115...
98
		registry->OpenKey( "Software\\ERG\\TxnTestManager", true );
115
		registry->OpenKey( "Software\\ERG\\TxnTestManager", true );
99
		registry->WriteString( "Profile", GenerationProfileComboBox->Text );
116
		registry->WriteString( "Profile", GenerationProfileComboBox->Text );
100
 
117
 
101
		registry->WriteString( "SecurityServerPipe", SecurityServerPipeEdit->Text );
118
		registry->WriteString( "SecurityServerPipe", SecurityServerPipeEdit->Text );
102
		registry->WriteString( "KeyNumber", KeyNumberEdit->Text );
119
		registry->WriteString( "KeyNumber", KeyNumberEdit->Text );
-
 
120
		registry->WriteString( "MacAlgorithm", MacAlgorithmComboBox->Text );
103
 
121
 
104
		if ( registry->OpenKey( GenerationProfileComboBox->Text, true ) )
122
		if ( registry->OpenKey( GenerationProfileComboBox->Text, true ) )
105
		{
123
		{
106
			registry->WriteString( "Folder", GenerationFolderDirectoryEdit->Text );
124
			registry->WriteString( "Folder", GenerationFolderDirectoryEdit->Text );
107
			
125