Beispiel #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;
            }
        }
Beispiel #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();
        }
Beispiel #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;
            }
        }
Beispiel #4
0
        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;
            }
        }