/LassyPad/bin/Debug/LassyPad.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/LassyPad/bin/Debug/LassyPad.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/LassyPad/obj/x86/Debug/LassyPad.exe |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/LassyPad/obj/x86/Debug/LassyPad.csproj.GenerateResource.Cache |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/LassyPad/obj/x86/Debug/LassyPad.pdb |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/LassyPad/obj/x86/Debug/LassyPad.csproj.FileListAbsolute.txt |
---|
26,10 → 26,3 |
C:\Documents and Settings\Freddie\My Documents\SharpDevelop Projects\LassyPad\LassyPad\bin\Debug\LassyPad.exe |
C:\Documents and Settings\Freddie\My Documents\SharpDevelop Projects\LassyPad\LassyPad\bin\Debug\LassyPad.pdb |
C:\Documents and Settings\Freddie\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\LassyPad.pdb |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\bin\Debug\LassyPad.exe |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\bin\Debug\LassyPad.pdb |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\ResolveAssemblyReference.cache |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\LassyPad.MainForm.resources |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\LassyPad.csproj.GenerateResource.Cache |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\LassyPad.exe |
C:\Documents and Settings\Freddie Nash\My Documents\SharpDevelop Projects\LassyPad\LassyPad\obj\x86\Debug\LassyPad.pdb |
/LassyPad/MainForm.cs |
---|
89,22 → 89,27 |
{ |
try |
{ |
rtfBox.LoadFile(loc); |
saved = true; |
if (loc.EndsWith(".rtf")) |
{ |
rtfBox.LoadFile(loc, RichTextBoxStreamType.TextTextOleObjs); |
isRtf = true; |
} |
else |
{ |
rtfBox.LoadFile(loc, RichTextBoxStreamType.PlainText); |
isRtf = false; |
} |
} |
catch (Exception ex) |
{ |
MessageBox.Show(ex.Message, "Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error); |
return false; |
try |
{ |
System.IO.StreamReader reader = new System.IO.StreamReader(loc); |
rtfBox.Text = reader.ReadToEnd(); |
// MessageBox.Show("File not loaded as RTF: " + ex.Message, "Load Notice", MessageBoxButtons.OK, MessageBoxIcon.Warning); |
isRtf = false; |
} |
catch (Exception ex2) |
{ |
MessageBox.Show(ex2.Message, "Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error); |
return false; |
} |
} |
return true; |
} |