Subversion Repositories spk

Rev

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

Rev 131 Rev 134
Line 5524... Line 5524...
5524
				FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
5524
				FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
5525
				fbd->Description = "Select the path to save the update file to";
5525
				fbd->Description = "Select the path to save the update file to";
5526
				fbd->SelectedPath = SystemStringFromCyString(CFileIO(m_pPackage->filename()).dir().findReplace("/", "\\"));
5526
				fbd->SelectedPath = SystemStringFromCyString(CFileIO(m_pPackage->filename()).dir().findReplace("/", "\\"));
5527
				if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5527
				if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
5528
				{
5528
				{
5529
					CyString file = m_pPackage->CreateUpdateFile(CyStringFromSystemString(fbd->SelectedPath));
5529
					Utils::String file = m_pPackage->createUpdateFile(_S(fbd->SelectedPath));
5530
					if ( !file.Empty() )
5530
					if ( !file.empty() )
5531
						MessageBox::Show(this, "Update file has been created\n" + SystemStringFromCyString(file) + "\n\nRemember to upload it your web server so its accessable\n" + _US(m_pPackage->webAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
5531
						MessageBox::Show(this, "Update file has been created\n" + _US(file) + "\n\nRemember to upload it your web server so its accessable\n" + _US(m_pPackage->webAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
5532
				}
5532
				}
5533
			}
5533
			}
5534
		 }
5534
		 }
5535
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
5535
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
5536
			 CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());
5536
			 CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());