Subversion Repositories spk

Rev

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

Rev 50 Rev 53
Line 110... Line 110...
110
			if ( picFile )
110
			if ( picFile )
111
			{
111
			{
112
				System::String ^pic = SystemStringFromCyString(picFile->GetFilePointer());
112
				System::String ^pic = SystemStringFromCyString(picFile->GetFilePointer());
113
				if ( System::IO::File::Exists(pic) )
113
				if ( System::IO::File::Exists(pic) )
114
				{
114
				{
-
 
115
					try {
115
					Bitmap ^myBitmap = gcnew Bitmap(pic);
116
						Bitmap ^myBitmap = gcnew Bitmap(pic);
116
					if ( myBitmap )
117
						if ( myBitmap )
117
					{
118
						{
118
						this->PictureDisplay->Image = dynamic_cast<Image ^>(myBitmap);
119
							this->PictureDisplay->Image = dynamic_cast<Image ^>(myBitmap);
119
						addedIcon = true;
120
							addedIcon = true;
-
 
121
						}
-
 
122
					}
-
 
123
					catch (System::ArgumentException ^E) {
120
					}
124
					}
121
				}
125
				}
122
			}
126
			}
123
 
127
 
124
			if ( !addedIcon )
128
			if ( !addedIcon )