예제 #1
0
        public void Open(ViewParam param)
        {
            switch (m_eStatus)
            {
            case ViewStatus.None:
                m_cOpenParam.Copy(param);
                m_eOpStatus = ViewOptype.Open;
                this.DoInit();
                break;

            case ViewStatus.Initing:
                m_cOpenParam.Copy(param);
                m_eOpStatus = ViewOptype.Open;
                break;

            case ViewStatus.Open:
                //m_eOpStatus = ViewOptype.None;
                //DoOpen();
                break;

            case ViewStatus.Openning:
                m_eOpStatus = ViewOptype.None;
                break;

            case ViewStatus.Close:
                m_eOpStatus = ViewOptype.None;
                m_cOpenParam.Copy(param);
                this.DoOpen();
                break;

            case ViewStatus.Closing:
                m_eOpStatus = ViewOptype.Open;
                break;
            }
        }
예제 #2
0
        public void Close()
        {
            switch (m_eStatus)
            {
            case ViewStatus.None:
                m_eOpStatus = ViewOptype.None;
                break;

            case ViewStatus.Initing:
                m_eOpStatus = ViewOptype.Close;
                break;

            case ViewStatus.Open:
                m_eOpStatus = ViewOptype.None;
                this.DoClose();
                break;

            case ViewStatus.Openning:
                m_eOpStatus = ViewOptype.Close;
                break;

            case ViewStatus.Close:
                m_eOpStatus = ViewOptype.None;
                break;

            case ViewStatus.Closing:
                m_eOpStatus = ViewOptype.None;
                break;
            }
        }
예제 #3
0
 private void OnResLoad()
 {
     if (m_eOpStatus == ViewOptype.Open)
     {
         m_eOpStatus = ViewOptype.None;
         this.DoOpen();
     }
     else if (m_eOpStatus == ViewOptype.Close)
     {
         m_eOpStatus    = ViewOptype.None;
         this.m_eStatus = ViewStatus.Closing;
     }
 }