コード例 #1
0
        private void OpenUIFormsAndHidingOther(string UIFormsName, BaseUIForms _baseUIForms)
        {
            if (string.IsNullOrEmpty(UIFormsName) || null == _baseUIForms)
            {
                return;
            }

            BaseUIForms _baseUIFormsAtDic = null;

            if (_DicCurShowUIForms.TryGetValue(UIFormsName, out _baseUIFormsAtDic))
            {
                _baseUIFormsAtDic = null;
                return;
            }

            foreach (BaseUIForms _baseUIFormsItem in _DicCurShowUIForms.Values)
            {
                _baseUIFormsItem.Hiding();
            }

            foreach (BaseUIForms _baseUIFormsItem in _StaCacheUIForms)
            {
                _baseUIFormsItem.Hiding();
            }
            _DicCurShowUIForms.Add(UIFormsName, _baseUIForms);
            _baseUIForms.Display();
        }
コード例 #2
0
        private void AddUIFormsToShowUIFormsDic(string UIFormsName, BaseUIForms _baseUIForms)
        {
            if (string.IsNullOrEmpty(UIFormsName) || null == _baseUIForms)
            {
                return;
            }
            BaseUIForms _baseUIFormsCurShowDic = null;

            if (!_DicCurShowUIForms.TryGetValue(UIFormsName, out _baseUIFormsCurShowDic))
            {
                _DicCurShowUIForms.Add(UIFormsName, _baseUIForms);
                _baseUIForms.Display();
            }
        }
コード例 #3
0
        private void AddUIFormsToShowUIFormsSta(BaseUIForms _baseUIForms)
        {
            if (null == _baseUIForms)
            {
                return;
            }

            if (_StaCacheUIForms.Contains(_baseUIForms))
            {
                return;
            }

            if (_baseUIForms.CurrentUIType.isClearStack)
            {
                ClearStack();
            }

            if (_StaCacheUIForms.Count > 0)
            {
                _StaCacheUIForms.Peek().Freeze();
            }
            _StaCacheUIForms.Push(_baseUIForms);
            _baseUIForms.Display();
        }