Beispiel #1
0
 private void CalcRowHeight()
 {
     GInfo.AddGraphics(null);
     try {
         rowHeight = Form.ScrollBar.SmallChange = AppearanceMatch.CalcTextSize(GInfo.Graphics, "Wg", 0).ToSize().Height + HoverElement.ContentMargins.Height;
     } finally { GInfo.ReleaseGraphics(); }
 }
Beispiel #2
0
        public override void Assign(RepositoryItem item)
        {
            base.Assign(item);
            var source = (RepositoryItemItemSelector)item;

            Columns.Clear();
            Columns.AddRange(source.Columns.Select(c => c.Copy()));             //The InsertItem overload will set the source.

            if (source.SortColumn == null)
            {
                SortColumn = null;
            }
            else
            {
                SortColumn = source.SortColumn.Copy();
            }
            if (source.ResultDisplayColumn == null)
            {
                ResultDisplayColumn = null;
            }
            else
            {
                ResultDisplayColumn = source.ResultDisplayColumn.Copy();
            }
            AdditionalResultColumns.AddRange(source.AdditionalResultColumns.Select(c => c.Copy()));

            SelectionIcon     = source.SelectionIcon;
            UserPopupHeight   = source.UserPopupHeight;
            AllowResize       = source.AllowResize;
            ShowColumnHeaders = source.ShowColumnHeaders;
            ShowVerticalLines = source.ShowVerticalLines;

            AppearanceColumnHeader.Assign(source.AppearanceColumnHeader);
            AppearanceMatch.Assign(source.AppearanceMatch);
            UpdateDataSource(source.DataSource, source.DataMember);
        }
Beispiel #3
0
 bool ShouldSerializeAppearanceMatch()
 {
     return(AppearanceMatch.ShouldSerialize());
 }
Beispiel #4
0
 void ResetAppearanceMatch()
 {
     AppearanceMatch.Reset();
 }