private void Vm_OnGenericVMEvent(VMEventType type, object data) { switch (type) { case VMEventType.TS1BuildBuyChange: Frontend.ModeSwitcher.UpdateBuildBuy(); break; } }
private void ReloadUpgrades(VMEventType type, object data) { if (type != VMEventType.TSOUpgraded) { return; } (Parent.Parent as UIQueryPanel)?.ReloadEntityInfo(false); PopulateUpgrades(); var vm = LotParent.vm; if (vm != null) { vm.OnGenericVMEvent -= ReloadUpgrades; } }
private void Vm_OnGenericVMEvent(VMEventType type, object data) { switch (type) { case VMEventType.TSOUnignore: PersonPage.ToggleBookmark(Common.DataService.Model.BookmarkType.IGNORE_AVATAR, null, (uint)data); break; case VMEventType.TSOTimeout: var dialog = new UITimeOutDialog(vm, (int)data); UIScreen.GlobalShowDialog(dialog, true); var rnd = new Random(); dialog.Position = new Vector2(rnd.Next(ScreenWidth - 500), rnd.Next(ScreenHeight - 500)); break; } }
private void Vm_OnGenericVMEvent(VMEventType type, object data) { //hmm... }
public void SignalGenericVMEvt(VMEventType type, object data) { OnGenericVMEvent?.Invoke(type, data); }