Subversion Repositories spk

Rev

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

Rev 170 Rev 224
Line 37... Line 37...
37
}
37
}
38
 
38
 
39
void ImportShip::StartImport()
39
void ImportShip::StartImport()
40
{
40
{
41
	m_pShip = new CXspFile();
41
	m_pShip = new CXspFile();
42
	if ( _sShipName ) m_pShip->setName(_S(_sShipName));
42
	if ( _sShipName ) m_pShip->setName(_WS(_sShipName));
43
	m_bError = false;
43
	m_bError = false;
44
	m_iStatus = IMPORTSHIP_SCENE;
44
	m_iStatus = IMPORTSHIP_SCENE;
45
	this->backgroundWorker1->RunWorkerAsync();
45
	this->backgroundWorker1->RunWorkerAsync();
46
}
46
}
47
 
47
 
Line 114... Line 114...
114
 
114
 
115
	 if ( m_iStatus < IMPORTSHIP_DONE )
115
	 if ( m_iStatus < IMPORTSHIP_DONE )
116
		 this->backgroundWorker1->RunWorkerAsync();
116
		 this->backgroundWorker1->RunWorkerAsync();
117
	 else {
117
	 else {
118
		 this->button1->Visible = true;
118
		 this->button1->Visible = true;
119
		 if ( _sShipName && _sShipName->Length ) m_pShip->setName(_S(_sShipName));
119
		 if ( _sShipName && _sShipName->Length ) m_pShip->setName(_WS(_sShipName));
120
	 }
120
	 }
121
}
121
}
122
 
122
 
123
void ImportShip::_cleanUp()
123
void ImportShip::_cleanUp()
124
{
124
{