public void ClosePanel(UIFrame.UIBase inst) { if (managedUIList.Contains(inst)) { inst.OnClosed(() => { }); inst.Dispose(); managedUIList.Remove(inst); } if (pendingUIList.Contains(inst)) { pendingUIList.Remove(inst); } var type = inst.GetType(); if (managedUIMap.ContainsKey(type)) { managedUIMap[type].Remove(inst); } var vm = inst.GetMainViewModel(); // UIDataRepo.Instance.GetViewModelWithPanelType(type, false, inst); if (vm != null) { UIDataRepo.Instance.UnregistViewModel(type, inst.GetMainViewModel()); } else { Debug.Log("$$ vm is null name:" + type.FullName); } }
public Component1_rx(UIFrame.UIBase _uiBase, Component1 _handle) { this._uiBase = _uiBase; this._handle = _handle; }
public Button1_rx(UIFrame.UIBase _uiBase, Button1 _handle) { this._uiBase = _uiBase; this._handle = _handle; }