public void Deactivate()
 {
     _gauntletLayer.InputRestrictions.ResetInputRestrictions();
     MissionScreen.RemoveLayer(_gauntletLayer);
     _gauntletLayer = null;
     _dataSource.OnFinalize();
     _dataSource = null;
 }
 public void Activate()
 {
     _dataSource    = new RTSCameraGameKeyConfigVM(AGameKeyCategoryManager.Get(), OnKeyBindRequest, Deactivate);
     _gauntletLayer = new GauntletLayer(ViewOrderPriorty)
     {
         IsFocusLayer = true
     };
     _gauntletLayer.LoadMovie("RTSCameraOptionsGameKeyPage", _dataSource);
     _gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("GenericPanelGameKeyCategory"));
     _gauntletLayer.InputRestrictions.SetInputRestrictions();
     _gauntletLayer.IsFocusLayer = true;
     MissionScreen.AddLayer(_gauntletLayer);
     ScreenManager.TrySetFocus(_gauntletLayer);
 }