Changeset 1752 for branches/eraser6/6.0/Eraser/MainForm.cs
- Timestamp:
- 2/8/2010 1:20:30 AM (2 years ago)
- File:
-
- 1 edited
-
branches/eraser6/6.0/Eraser/MainForm.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/6.0/Eraser/MainForm.cs
r1735 r1752 34 34 using System.Diagnostics; 35 35 using System.Reflection; 36 using System.Runtime.Serialization; 36 37 37 38 namespace Eraser … … 258 259 FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) 259 260 { 260 Program.eraserClient.Tasks.LoadFromStream(stream); 261 try 262 { 263 Program.eraserClient.Tasks.LoadFromStream(stream); 264 } 265 catch (FileLoadException ex) 266 { 267 MessageBox.Show(S._("The task list could not be imported. The error " + 268 "returned was: {0}", ex.Message), S._("Eraser"), 269 MessageBoxButtons.OK, MessageBoxIcon.Error, 270 MessageBoxDefaultButton.Button1, 271 S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0); 272 } 273 catch (SerializationException ex) 274 { 275 MessageBox.Show(S._("The task list could not be imported. The error " + 276 "returned was: {0}", ex.Message), S._("Eraser"), 277 MessageBoxButtons.OK, MessageBoxIcon.Error, 278 MessageBoxDefaultButton.Button1, 279 S.IsRightToLeft(null) ? MessageBoxOptions.RtlReading : 0); 280 } 261 281 } 262 282 }
Note: See TracChangeset
for help on using the changeset viewer.
