Subversion Repositories spk

Rev

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

Rev 1 Rev 46
Line 126... Line 126...
126
				System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(InstallPackageDialog::typeid));
126
				System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(InstallPackageDialog::typeid));
127
				System::Drawing::Icon ^icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
127
				System::Drawing::Icon ^icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
128
				this->PictureDisplay->Image = icon->ToBitmap();
128
				this->PictureDisplay->Image = icon->ToBitmap();
129
			}
129
			}
130
 
130
 
131
			if ( !p->GetInstallBeforeText(m_pPackages->GetLanguage()).Empty() )
131
			if ( !p->installText(m_pPackages->GetLanguage(), true).empty() )
132
			{
132
			{
133
				this->TextInstall->Text = SystemStringFromCyString(p->GetInstallBeforeText(m_pPackages->GetLanguage()).StripHTML());
133
				this->TextInstall->Text = SystemStringFromCyString(CyString(p->installText(m_pPackages->GetLanguage(), true)).StripHTML());
134
				this->TextInstall->Show();
134
				this->TextInstall->Show();
135
			}
135
			}
136
 
136
 
137
			this->LabDate->Text = SystemStringFromCyString(p->GetCreationDate());
137
			this->LabDate->Text = SystemStringFromCyString(p->GetCreationDate());
138
			this->LabVersion->Text = SystemStringFromCyString(p->GetVersion());
138
			this->LabVersion->Text = SystemStringFromCyString(p->GetVersion());
Line 172... Line 172...
172
			if ( p->AnyGameCompatability() )
172
			if ( p->AnyGameCompatability() )
173
				this->LabGames->Text = SystemStringFromCyString(m_pPackages->GetGameTypesString(p, true));
173
				this->LabGames->Text = SystemStringFromCyString(m_pPackages->GetGameTypesString(p, true));
174
			else
174
			else
175
				this->LabGames->Text = "All Games";
175
				this->LabGames->Text = "All Games";
176
 
176
 
177
			if ( p->GetGameChanging() >= 1 || p->GetRecommended() >= 1 || p->GetEaseOfUse() >= 1 )
177
			if ( p->gameChanging() >= 1 || p->recommended() >= 1 || p->easeOfUse() >= 1 )
178
			{
178
			{
179
				this->PanelRating->Show();
179
				this->PanelRating->Show();
180
 
180
 
181
				// ease of use rating
181
				// ease of use rating
182
				if ( p->GetEaseOfUse() >= 1 )
182
				if ( p->easeOfUse() >= 1 )
183
					PicEase1->Show();
183
					PicEase1->Show();
184
				if ( p->GetEaseOfUse() >= 2 )
184
				if ( p->easeOfUse() >= 2 )
185
					PicEase2->Show();
185
					PicEase2->Show();
186
				if ( p->GetEaseOfUse() >= 3 )
186
				if ( p->easeOfUse() >= 3 )
187
					PicEase3->Show();
187
					PicEase3->Show();
188
				if ( p->GetEaseOfUse() >= 4 )
188
				if ( p->easeOfUse() >= 4 )
189
					PicEase4->Show();
189
					PicEase4->Show();
190
				if ( p->GetEaseOfUse() >= 5 )
190
				if ( p->easeOfUse() >= 5 )
191
					PicEase5->Show();
191
					PicEase5->Show();
192
 
192
 
193
				// game changing rating
193
				// game changing rating
194
				if ( p->GetGameChanging() >= 1 )
194
				if ( p->gameChanging() >= 1 )
195
					PicChange1->Show();
195
					PicChange1->Show();
196
				if ( p->GetGameChanging() >= 2 )
196
				if ( p->gameChanging() >= 2 )
197
					PicChange2->Show();
197
					PicChange2->Show();
198
				if ( p->GetGameChanging() >= 3 )
198
				if ( p->gameChanging() >= 3 )
199
					PicChange3->Show();
199
					PicChange3->Show();
200
				if ( p->GetGameChanging() >= 4 )
200
				if ( p->gameChanging() >= 4 )
201
					PicChange4->Show();
201
					PicChange4->Show();
202
				if ( p->GetGameChanging() >= 5 )
202
				if ( p->gameChanging() >= 5 )
203
					PicChange5->Show();
203
					PicChange5->Show();
204
 
204
 
205
				// Recommanded rating
205
				// Recommanded rating
206
				if ( p->GetRecommended() >= 1 )
206
				if ( p->recommended() >= 1 )
207
					PicRec1->Show();
207
					PicRec1->Show();
208
				if ( p->GetRecommended() >= 2 )
208
				if ( p->recommended() >= 2 )
209
					PicRec2->Show();
209
					PicRec2->Show();
210
				if ( p->GetRecommended() >= 3 )
210
				if ( p->recommended() >= 3 )
211
					PicRec3->Show();
211
					PicRec3->Show();
212
				if ( p->GetRecommended() >= 4 )
212
				if ( p->recommended() >= 4 )
213
					PicRec4->Show();
213
					PicRec4->Show();
214
				if ( p->GetRecommended() >= 5 )
214
				if ( p->recommended() >= 5 )
215
					PicRec5->Show();
215
					PicRec5->Show();
216
			}
216
			}
217
 
217
 
218
			switch ( p->GetLoadError() )
218
			switch ( p->GetLoadError() )
219
			{
219
			{