Subversion Repositories spk

Rev

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

Rev 131 Rev 158
Line 296... Line 296...
296
			int count = 0;	
296
			int count = 0;	
297
			for ( int i = 0; i < Files->Length; i++ )
297
			for ( int i = 0; i < Files->Length; i++ )
298
			{
298
			{
299
				String ^file = Files[i];
299
				String ^file = Files[i];
300
				
300
				
301
				if ( m_pPackages->UnPackFile(CyStringFromSystemString(file)) )
301
				if ( m_pPackages->UnPackFile(_S(file)) )
302
					++count;
302
					++count;
303
			}
303
			}
304
 
304
 
305
			return count;
305
			return count;
306
		}
306
		}
Line 354... Line 354...
354
			if ( !item ) return;
354
			if ( !item ) return;
355
			UnPack(System::Convert::ToString(item->Tag) + item->Text);
355
			UnPack(System::Convert::ToString(item->Tag) + item->Text);
356
		}
356
		}
357
		void UnPack(String ^filename)
357
		void UnPack(String ^filename)
358
		{
358
		{
359
			 if ( m_pPackages->UnPackFile(CyStringFromSystemString(filename)) )
359
			 if ( m_pPackages->UnPackFile(_S(filename)) )
360
			 {
360
			 {
361
				 MessageBox::Show(this, "File: " + filename + "\nHas been unpacked", "File UnPacked", MessageBoxButtons::OK, MessageBoxIcon::Information);
361
				 MessageBox::Show(this, "File: " + filename + "\nHas been unpacked", "File UnPacked", MessageBoxButtons::OK, MessageBoxIcon::Information);
362
				 this->SelectedNode(this->treeView1->SelectedNode);
362
				 this->SelectedNode(this->treeView1->SelectedNode);
363
			 }
363
			 }
364
		}
364
		}