protected override void OnFinalize()
 {
     base.OnFinalize();
     _layer.InputRestrictions.ResetInputRestrictions();
     MapScreen.RemoveLayer(_layer);
     MapScreen.RestartAmbientSounds();
     ScreenManager.TryLoseFocus(_layer);
     _layer      = null;
     _dataSource = null;
 }
        protected override void CreateLayout()
        {
            base.CreateLayout();
            _dataSource = new CustomCampaignOptionsVM(OnClose);
            var gauntletLayer = new GauntletLayer(4401)
            {
                IsFocusLayer = true
            };

            _layer = gauntletLayer;
            _layer.LoadMovie("CustomCampaignOptions", _dataSource);
            _layer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
            _layer.InputRestrictions.SetInputRestrictions();
            MapScreen.AddLayer(_layer);
            MapScreen.PauseAmbientSounds();
            ScreenManager.TrySetFocus(_layer);
        }