public void HandleEvent(object sender, NotifyEvent e, HandlingPriority priority)
        {
            switch (e.Type)
            {
            case EventType.ProcessStart:
                ui.BeginUpdate();
                break;

            case EventType.ProcessEnd:
                ui.EndUpdate();
                break;
            }
        }