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; } }
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; } }
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; } }