update_column_names() public method

public update_column_names ( ) : void
return void
Esempio n. 1
0
        static public void refresh_visible_columns(List <log_view> all_views, log_view full_log)
        {
            Debug.Assert(full_log.is_full_log);
            if (refresh_visible_columns_any_change(full_log))
            {
                // notify all other views
                foreach (log_view lv in all_views)
                {
                    lv.visible_columns = full_log.visible_columns;
                    refresh_visible_columns(lv, full_log);
                }

                if (full_log.visible_columns_refreshed_ >= MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS)
                {
                    foreach (log_view lv in all_views)
                    {
                        // in tihs case, we consider knowing the visible-columns for ALL views
                        lv.visible_columns_refreshed_ = MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS;
                    }
                }

                // now, apply the saved-custom-positions, if any
                foreach (log_view lv in all_views)
                {
                    apply_column_positions(lv);
                }
                apply_column_positions(full_log);

                full_log.update_column_names();
                foreach (log_view lv in all_views)
                {
                    lv.update_column_names();
                }
            }
        }
Esempio n. 2
0
        static public void refresh_visible_columns(List <log_view> all_views, log_view full_log)
        {
            Debug.Assert(full_log.is_full_log);
            if (refresh_visible_columns_any_change(full_log))
            {
                if (full_log.available_columns_refreshed_ >= MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS)
                {
                    // at this point, we need to apply custom positions to all views
                    // if they were cached (computed before) -> we already have them
                    // if they were not cached, we force them now
                    if (full_log.column_positions == "")
                    {
                        full_log.column_positions = column_positions_as_string(full_log);
                    }
                    foreach (log_view lv in all_views)
                    {
                        if (lv.column_positions == "")
                        {
                            lv.column_positions = full_log.column_positions;
                        }
                    }
                }

                foreach (log_view lv in all_views)
                {
                    lv.list.SuspendLayout();
                }
                full_log.list.SuspendLayout();

                // notify all other views
                foreach (log_view lv in all_views)
                {
                    refresh_visible_columns(lv);
                }

                // now, apply the saved-custom-positions, if any
                foreach (log_view lv in all_views)
                {
                    apply_column_positions(lv);
                }
                apply_column_positions(full_log);

                full_log.update_column_names();
                foreach (log_view lv in all_views)
                {
                    lv.update_column_names();
                }

                foreach (log_view lv in all_views)
                {
                    lv.list.ResumeLayout(true);
                }
                full_log.list.ResumeLayout(true);
            }
        }
        static public void refresh_visible_columns(List<log_view> all_views, log_view full_log) {
            Debug.Assert(full_log.is_full_log);
            if (refresh_visible_columns_any_change(full_log)) {
                // notify all other views
                foreach (log_view lv in all_views) {
                    lv.visible_columns = full_log.visible_columns;
                    refresh_visible_columns(lv, full_log);
                }

                if ( full_log.visible_columns_refreshed_ >= MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS)
                    foreach (log_view lv in all_views)
                        // in tihs case, we consider knowing the visible-columns for ALL views
                        lv.visible_columns_refreshed_ = MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS;

                // now, apply the saved-custom-positions, if any
                foreach (log_view lv in all_views)
                    apply_column_positions(lv);
                apply_column_positions(full_log);

                full_log.update_column_names();
                foreach (log_view lv in all_views)
                    lv.update_column_names();
            }
        }
Esempio n. 4
0
        static public void refresh_visible_columns(List<log_view> all_views, log_view full_log) {
            Debug.Assert(full_log.is_full_log);
            if (refresh_visible_columns_any_change(full_log)) {
                if (full_log.available_columns_refreshed_ >= MIN_ROWS_FOR_COMPUTE_VISIBLE_COLUMNS) {
                    // at this point, we need to apply custom positions to all views 
                    // if they were cached (computed before) -> we already have them
                    // if they were not cached, we force them now
                    if ( full_log.column_positions == "")
                        full_log.column_positions = column_positions_as_string(full_log);
                    foreach (log_view lv in all_views)
                        if (lv.column_positions == "")
                            lv.column_positions = full_log.column_positions;
                }

                foreach (log_view lv in all_views) 
                    lv.list.SuspendLayout();
                full_log.list.SuspendLayout();

                // notify all other views
                foreach (log_view lv in all_views) 
                    refresh_visible_columns(lv);

                // now, apply the saved-custom-positions, if any
                foreach (log_view lv in all_views)
                    apply_column_positions(lv);
                apply_column_positions(full_log);

                full_log.update_column_names();
                foreach (log_view lv in all_views)
                    lv.update_column_names();

                foreach (log_view lv in all_views) 
                    lv.list.ResumeLayout(true);
                full_log.list.ResumeLayout(true);
            }
        }