Subversion Repositories LassyPad

Compare Revisions

Ignore whitespace Rev 9 → Rev 10

/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,3 → 26,10
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,27 → 89,22
{
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)
{
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;
}
MessageBox.Show(ex.Message, "Load Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
return true;
}