Beispiel #1
0
 protected override void OnFinalize()
 {
     base.OnFinalize();
     RemoveLayer(_gauntletLayer);
     this._datasource    = null;
     this._gauntletLayer = null;
 }
Beispiel #2
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     this._datasource    = new CultureChangerViewModel(ref this._cultureChangerProperties);
     this._gauntletLayer = new GauntletLayer(100, "GauntletLayer");
     this._gauntletLayer.IsFocusLayer = true;
     base.AddLayer(this._gauntletLayer);
     this._gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All);
     ScreenManager.TrySetFocus(this._gauntletLayer);
     this._movie = this._gauntletLayer.LoadMovie(nameof(CultureChangerScreen), this._datasource);
 }