| 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()), "4512", 0);
 | 745 | 				 m_pShipFile->NewCockpit(CyStringFromSystemString(input->GetInput()).ToString(), "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 | 			 }
 | 
          
            | 751 | 		 }
 | 751 | 		 }
 | 
          
            | 752 | private: System::Void TextCockpitScene_TextChanged(System::Object^  sender, System::EventArgs^  e) {
 | 752 | private: System::Void TextCockpitScene_TextChanged(System::Object^  sender, System::EventArgs^  e) {
 | 
          
            | 753 | 			 if ( m_pCurrentCockpit )
 | 753 | 			 if ( m_pCurrentCockpit )
 | 
          
            | 754 | 				 m_pCurrentCockpit->sCockpit = m_pCurrentCockpit->sCockpit.RepToken(";", 8, CyStringFromSystemString(this->TextCockpitScene->Text));
 | 754 | 				 m_pCurrentCockpit->sCockpit = m_pCurrentCockpit->sCockpit.replaceToken(";", 8, CyStringFromSystemString(this->TextCockpitScene->Text).ToString());
 | 
          
            | 755 | 		 }
 | 755 | 		 }
 | 
          
            | 756 | private: System::Void ListWeaponCockpit_ItemChecked(System::Object^  sender, System::Windows::Forms::ItemCheckedEventArgs^  e) {
 | 756 | private: System::Void ListWeaponCockpit_ItemChecked(System::Object^  sender, System::Windows::Forms::ItemCheckedEventArgs^  e) {
 | 
          
            | 757 | 			 this->SaveCockpitWeaponsList();
 | 757 | 			 this->SaveCockpitWeaponsList();
 | 
          
            | 758 | 		 }
 | 758 | 		 }
 | 
          
            | 759 | private: System::Void contextMenuStrip1_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
 | 759 | private: System::Void contextMenuStrip1_Opening(System::Object^  sender, System::ComponentModel::CancelEventArgs^  e) {
 |