protected override void OnFinalize() { base.OnFinalize(); RemoveLayer(gauntletLayer); gauntletLayer.ReleaseMovie(movie); gauntletLayer = null; movie = null; vm.SettingProperty = null; vm = null; }
protected override void OnFinalize() { base.OnFinalize(); RemoveLayer(_gauntletLayer); _gauntletLayer.ReleaseMovie(_gauntletMovie); _gauntletLayer = null !; _gauntletMovie = null !; _dataSource.SettingProperty = null !; _dataSource = null !; }
protected override void OnInitialize() { base.OnInitialize(); gauntletLayer = new GauntletLayer(4500); gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All); gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("ChatLogHotKeyCategory")); ScreenManager.TrySetFocus(gauntletLayer); vm = new EditValueVM(settingProperty); AddLayer(gauntletLayer); movie = gauntletLayer.LoadMovie("EditValueView", vm); }
protected override void OnInitialize() { base.OnInitialize(); _dataSource = new EditValueVM(_settingProperty); _gauntletLayer = new GauntletLayer(4000, "GauntletLayer"); _gauntletMovie = _gauntletLayer.LoadMovie("EditValueView", _dataSource); _gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("ChatLogHotKeyCategory")); _gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All); _gauntletLayer.IsFocusLayer = true; AddLayer(_gauntletLayer); ScreenManager.TrySetFocus(_gauntletLayer); }
protected override void OnInitialize() { base.OnInitialize(); _dataSource = new EditValueVM(_settingProperty); if (GauntletLayerUtils.Create(4000, "GauntletLayer") is { } gauntletLayer) { _gauntletLayer = gauntletLayer; _gauntletMovie = LoadMovie is not null?LoadMovie(_gauntletLayer, "EditValueView_MCM", _dataSource) : null; _gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("ChatLogHotKeyCategory")); _gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All); _gauntletLayer.IsFocusLayer = true; AddLayer(_gauntletLayer); ScreenManager.TrySetFocus(_gauntletLayer); } }