Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public Component1_rx(UIFrame.UIBase _uiBase, Component1 _handle)
 {
     this._uiBase = _uiBase;
     this._handle = _handle;
 }
Esempio n. 3
0
 public Button1_rx(UIFrame.UIBase _uiBase, Button1 _handle)
 {
     this._uiBase = _uiBase;
     this._handle = _handle;
 }