예제 #1
0
        internal virtual void Draw(MaintainerWindow parentWindow)
        {
            if (records == null)
            {
                records = LoadLastRecords();
                ApplySorting();
                recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RECORDS_PER_PAGE);

                PerformPostRefreshActions();
            }

            window = parentWindow;

            using (layout.Horizontal())
            {
                DrawLeftSection();
                DrawRightSection();
            }

            if (gotoRecord != null)
            {
                gotoRecord.Show();
                gotoRecord = null;
            }
        }
예제 #2
0
        internal virtual void Draw(MaintainerWindow parentWindow)
        {
            if (records == null)
            {
                LoadLastRecords();
                if (records != null)
                {
                    recordsTotalPages = (int)Math.Ceiling((double)records.Length / RECORDS_PER_PAGE);
                }
                else
                {
                    Debug.Log("records null");
                    recordsTotalPages = 0;
                }
            }

            window = parentWindow;

            using (UIHelpers.Horizontal())
            {
                DrawSettingsSection();
                DrawSearchSection();
            }

            if (gotoRecord != null)
            {
                gotoRecord.Show();
                gotoRecord = null;
            }

            ProcessUserActions();
        }
예제 #3
0
        public override void Draw()
        {
            if (records == null)
            {
                records = LoadLastRecords();
                rightColumnScrollPosition = GetState().scrollPosition;
                ApplySorting();
                ApplyState();
                recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RecordsPerPage);
                PerformPostRefreshActions();
            }

            base.Draw();

            if (gotoRecord != null)
            {
                gotoRecord.Show();
                gotoRecord = null;
            }
        }
예제 #4
0
파일: RecordsTab.cs 프로젝트: s1gurd/W-Hub
        public virtual void Draw()
        {
            if (records == null)
            {
                records = LoadLastRecords();
                searchSectionScrollPosition = GetState().searchSectionScrollPosition;
                ApplySorting();
                ApplyState();
                recordsTotalPages = (int)Math.Ceiling((double)filteredRecords.Length / RecordsPerPage);
                PerformPostRefreshActions();
            }

            using (new GUILayout.HorizontalScope())
            {
                DrawLeftSection();
                DrawRightSection();
            }

            if (gotoRecord != null)
            {
                gotoRecord.Show();
                gotoRecord = null;
            }
        }