Ejemplo n.º 1
0
        /// <inheritdoc />
        public void Start()
        {
            m_View.SetBusyStatus(m_HistoryModel.Busy);

            // Request initial data
            if (string.IsNullOrEmpty(m_HistoryModel.SavedRevisionId))
            {
                m_HistoryModel.RequestPageOfRevisions(pageSize);
            }
            else
            {
                m_HistoryModel.RequestSingleRevision(m_HistoryModel.SavedRevisionId);
            }
            m_HistoryModel.RequestEntryNumber();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Populate the view with the initial data from the model.
        /// </summary>
        void PopulateInitialData()
        {
            m_View.SetBusyStatus(m_HistoryModel.Busy);

            if (!string.IsNullOrEmpty(m_HistoryModel.SelectedRevisionId))
            {
                m_HistoryModel.RequestSingleRevision(m_HistoryModel.SelectedRevisionId);
            }
            else if (!string.IsNullOrEmpty(m_HistoryModel.SavedRevisionId))
            {
                m_HistoryModel.RequestSingleRevision(m_HistoryModel.SavedRevisionId);
            }
            else
            {
                // Request initial data
                m_HistoryModel.RequestPageOfRevisions(pageSize);
            }
            m_HistoryModel.RequestEntryNumber();
        }