private void Each_Tick(Object obj, EventArgs ev) { try { if (_nStep + 1 == m_classTypeListInfo.ClassType.Count) { disapthcerTimer.Stop(); } if ((m_classTypeListInfo.ClassType[_nStep].Class_File_Type == 2 || m_classTypeListInfo.ClassType[_nStep].Class_File_Type == 0) && !_bSuccess) { _bSuccess = true; Login._ClassTypeInfo = m_classTypeListInfo.ClassType[_nStep]; FilmUserControl filmUserControl = new FilmUserControl(); wrapPanel1.Children.Add(filmUserControl); filmUserControl.InitFilmView(Login._ClassTypeInfo); _nStep++; _bSuccess = false; } } catch (Exception ex) { string strError = ex.ToString(); ErrorCollection.GetInstance().SetErrorInfo(strError); } }
private void Each_Tick(Object obj, EventArgs ev) { try { if (_nStep + 1 == m_classTypeListInfo.ClassType.Count) { disapthcerTimer.Stop(); } if ((m_classTypeListInfo.ClassType[_nStep].Class_File_Type == 2 || m_classTypeListInfo.ClassType[_nStep].Class_File_Type == 0) && !_bSuccess) { _bSuccess = true; Window1._ClassTypeInfo = m_classTypeListInfo.ClassType[_nStep]; FilmUserControl filmUserControl = new FilmUserControl(); wrapPanel1.Children.Add(filmUserControl); filmUserControl.InitFilmView(Window1._ClassTypeInfo); _nStep++; _bSuccess = false; } } catch (Exception e) { string s = e.ToString(); } }