/[RomCheater]/trunk/RomCheater.ScratchPad/ScratchPadDocument.cs
ViewVC logotype

Diff of /trunk/RomCheater.ScratchPad/ScratchPadDocument.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 811 by william, Fri Jun 21 04:50:33 2013 UTC revision 812 by william, Tue Apr 15 14:52:10 2014 UTC
# Line 10  using WeifenLuo.WinFormsUI.Docking; Line 10  using WeifenLuo.WinFormsUI.Docking;
10  using RomCheater.Core;  using RomCheater.Core;
11  using System.IO;  using System.IO;
12  using RomCheater.Logging;  using RomCheater.Logging;
13    using Enterprise.Logging;
14    
15  namespace RomCheater.ScratchPad  namespace RomCheater.ScratchPad
16  {  {
# Line 160  namespace RomCheater.ScratchPad Line 161  namespace RomCheater.ScratchPad
161              {              {
162                  this.DocumentSaved = false;                  this.DocumentSaved = false;
163                  MessageBox.Show(string.Format("Failed to open: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);                  MessageBox.Show(string.Format("Failed to open: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
164                  logger.Error.WriteLine("Failed to open: '{0}'", fi.FullName);                  gLog.Error.WriteLine("Failed to open: '{0}'", fi.FullName);
165                  logger.Error.WriteLine(ex.ToString());                  gLog.Verbose.Error.WriteLine(ex.ToString());
166              }              }
167          }          }
168          private void SaveDocument()          private void SaveDocument()
# Line 220  namespace RomCheater.ScratchPad Line 221  namespace RomCheater.ScratchPad
221              {              {
222                  this.DocumentSaved = false;                  this.DocumentSaved = false;
223                  MessageBox.Show(string.Format("Failed to save: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);                  MessageBox.Show(string.Format("Failed to save: '{0}'", fi.Name), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
224                  logger.Error.WriteLine("Failed to save: '{0}'", fi.FullName);                  gLog.Error.WriteLine("Failed to save: '{0}'", fi.FullName);
225                  logger.Error.WriteLine(ex.ToString());                  gLog.Verbose.Error.WriteLine(ex.ToString());
226              }              }
227          }          }
228    

Legend:
Removed from v.811  
changed lines
  Added in v.812

  ViewVC Help
Powered by ViewVC 1.1.22