| Line 740... |
Line 740... |
| 740 |
}
|
740 |
}
|
| 741 |
private: System::Void ButNewCockpit_Click(System::Object^ sender, System::EventArgs^ e) {
|
741 |
private: System::Void ButNewCockpit_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 742 |
InputBox ^input = gcnew InputBox("Enter the cockpit id to add", "SS_COCKPIT_");
|
742 |
InputBox ^input = gcnew InputBox("Enter the cockpit id to add", "SS_COCKPIT_");
|
| 743 |
if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
743 |
if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
| 744 |
{
|
744 |
{
|
| 745 |
m_pShipFile->NewCockpit(CyStringFromSystemString(input->GetInput()).ToString(), "4512", 0);
|
745 |
m_pShipFile->NewCockpit(_S(input->GetInput()), "4512", 0);
|
| 746 |
this->ComboCockpitCustom->Items->Add(input->GetInput());
|
746 |
this->ComboCockpitCustom->Items->Add(input->GetInput());
|
| 747 |
this->ComboCockpitCustom->Text = input->GetInput();
|
747 |
this->ComboCockpitCustom->Text = input->GetInput();
|
| 748 |
this->RadioCockpitCustom->Checked = true;
|
748 |
this->RadioCockpitCustom->Checked = true;
|
| 749 |
this->RadioCockpitCustom->Enabled = true;
|
749 |
this->RadioCockpitCustom->Enabled = true;
|
| 750 |
}
|
750 |
}
|