Subversion Repositories spk

Rev

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

Rev 10 Rev 14
Line 1348... Line 1348...
1348
				if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
1348
				if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
1349
				{
1349
				{
1350
					SStringList *str = list.FindString(CyStringFromSystemString(ls->GetData()));
1350
					SStringList *str = list.FindString(CyStringFromSystemString(ls->GetData()));
1351
					if ( str )
1351
					if ( str )
1352
					{
1352
					{
1353
						((CXspFile *)m_pPackage)->SetShipData(str->data);
1353
						((CXspFile *)m_pPackage)->SetShipData(str->data.ToString());
1354
						if ( ((CXspFile *)m_pPackage)->GetShipID().Empty() )
1354
						if ( ((CXspFile *)m_pPackage)->GetShipID().empty() )
1355
						{
1355
						{
1356
							CyString id = str->data.GetToken(";", -2);
1356
							CyString id = str->data.GetToken(";", -2);
1357
							while ( id.Right(1) == ";" )
1357
							while ( id.Right(1) == ";" )
1358
								id.Truncate((int)id.Length() - 1);
1358
								id.Truncate((int)id.Length() - 1);
1359
							((CXspFile *)m_pPackage)->SetShipID(id);
1359
							((CXspFile *)m_pPackage)->SetShipID(id.ToString());
1360
							this->TextShipID->Text = SystemStringFromCyString(id);
1360
							this->TextShipID->Text = SystemStringFromCyString(id);
1361
						}
1361
						}
1362
 
1362
 
1363
						((CXspFile *)m_pPackage)->SetShipData(str->data);
1363
						((CXspFile *)m_pPackage)->SetShipData(str->data.ToString());
1364
						this->TextShipData->Text = SystemStringFromCyString(str->data);
1364
						this->TextShipData->Text = SystemStringFromCyString(str->data);
1365
						this->NumTextID->Value = str->data.GetToken(";", 7, 7).ToInt();
1365
						this->NumTextID->Value = str->data.GetToken(";", 7, 7).ToInt();
1366
						this->UpdateChanged();
1366
						this->UpdateChanged();
1367
					}
1367
					}
1368
				}
1368
				}