~dangarner/xibo/105-client-webbrowser

« back to all changes in this revision

Viewing changes to client/dotNET/Schedule.cs

  • Committer: Dan Garner
  • Date: 2009-08-08 11:07:49 UTC
  • mfrom: (62.1.3 1.0.0)
  • Revision ID: mail@dangarner.co.uk-20090808110749-l92jy3b4hs5husd0
MergedĀ lp:~dangarner/xibo/display-stats-103

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
            System.Diagnostics.Debug.WriteLine("Layout file changed");
217
217
 
218
218
            // If the layout that got changed is the current layout, move on
219
 
            if (layoutSchedule[currentLayout].layoutFile == Properties.Settings.Default.LibraryPath + @"\" + layoutPath)
220
 
            {
221
 
                forceChange = true;
222
 
                NextLayout();
 
219
            try
 
220
            {
 
221
                if (layoutSchedule[currentLayout].layoutFile == Properties.Settings.Default.LibraryPath + @"\" + layoutPath)
 
222
                {
 
223
                    forceChange = true;
 
224
                    NextLayout();
 
225
                }
 
226
            }
 
227
            catch (Exception ex)
 
228
            {
 
229
                System.Diagnostics.Trace.WriteLine(new LogMessage("fileCollector_LayoutFileChanged", String.Format("Unable to determine current layout with exception {0}", ex.Message)), LogType.Error.ToString());
223
230
            }
224
231
        }
225
232