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 |
{ |
{ |
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() |
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 |
|
|