Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the
 ///     <see cref="LayoutService.EventsSuspender" /> class.
 /// </summary>
 /// <param name="layoutService">The layout service.</param>
 public EventsSuspender(LayoutService layoutService)
 {
     _service = layoutService;
     _service.EventsLocked = true;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventsSuspender" /> class.
 /// </summary>
 /// <param name="layoutManager">The layout manager.</param>
 public EventsSuspender(LayoutService layoutService)
 {
     service = layoutService;
     service.eventsAreSuspended = true;
 }