void SetCurrent(LogTypeEntry entry)
        {
            LogTypeEntry tmp = entry;

            if (tmp == current)
            {
                return;
            }

            if (current != null)
            {
                if (current.UI != null)
                {
                    dialog.DetachPageView(current.UI.View);
                    current.UI.Deactivate();
                }
            }
            current = tmp;
            if (current != null)
            {
                dialog.SetFormatControls(current.ToString(), current.GetDescription());
                var ui = current.UI;
                if (current.UI == null)
                {
                    ui = current.UI = current.CreateUI();
                }
                if (current.UI != null)
                {
                    dialog.AttachPageView(ui.View);
                    current.UI.Activate();
                }
            }
        }
        void IDialogViewEvents.OnSelectedIndexChanged()
        {
            LogTypeEntry tmp = GetSelected();

            SetCurrent(tmp);
        }