Line 531... |
Line 531... |
531 |
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
|
531 |
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
|
532 |
}
|
532 |
}
|
533 |
private: System::Void TextRecharge_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
533 |
private: System::Void TextRecharge_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
534 |
if ( !this->TextRecharge->Text || !this->TextRecharge->Text->Length )
|
534 |
if ( !this->TextRecharge->Text || !this->TextRecharge->Text->Length )
|
535 |
return;
|
535 |
return;
|
536 |
if ( !CyStringFromSystemString(this->TextRecharge->Text).IsNumber() )
|
536 |
if ( !_WS(this->TextRecharge->Text).isNumber() )
|
537 |
return;
|
537 |
return;
|
538 |
|
538 |
|
539 |
if ( !m_bUpdateing )
|
539 |
if ( !m_bUpdateing )
|
540 |
m_pShipData->fLaserRecharge = (float)Convert::ToDouble(this->TextRecharge->Text);
|
540 |
m_pShipData->fLaserRecharge = (float)Convert::ToDouble(this->TextRecharge->Text);
|
541 |
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
|
541 |
this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
|