Exemplo n.º 1
0
        //关闭子窗口
        protected void CloseSubWindow(string name)
        {
            M_SubWindow subwin = null;

            if (this.subWindowsDictionary.TryGetValue(name, out subwin))
            {
                subwin.Close();
            }
            else
            {
                BDebug.LogError("不存在子窗口:" + name);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 打开
        /// </summary>
        /// <param name="name"></param>
        protected void OpenSubWindow(string name, M_WindowData mWindowData = null)
        {
            M_SubWindow subwin = null;

            if (this.subWindowsDictionary.TryGetValue(name, out subwin))
            {
                subwin.Open(mWindowData);
            }

            else
            {
                BDebug.LogError("不存在子窗口:" + name);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 添加子窗口
 /// </summary>
 /// <param name="name"></param>
 /// <param name="win"></param>
 protected void AddSubWindow(string name, M_SubWindow win)
 {
     this.subWindowsDictionary[name] = win;
 }