/// <summary>
        /// Initializes settings for this component.
        /// </summary>
        /// <param name="settings">The settings to use to initialize this component with.</param>
        internal void InitializeSettings(Settings settings)
        {
            this.settings = settings;
            this.SetFormatting(settings.GetTextSize(), settings.GetFontSelection());
            this.RowHeight = 32;
            this.ShowItemToolTips = true;
            this.HeaderStyle = ColumnHeaderStyle.None;

            this.defaultCol = this.AllColumns.Find(e => e.AspectName == COL_NAME_TASK_NAME);
            this.defaultCol.WordWrap = true;
            this.AlwaysGroupByColumn = defaultCol;

            this.AllColumns.Find(e => e.AspectName == COL_NAME_DONE_STATE).AspectToStringConverter = delegate(object state)
            {
                if ((bool)state == true) return MESSAGE_STYLE_DONE;
                else return String.Empty;
            };

            SetGroupingByDateTime();

            EmptyListMsg = MESSAGE_EMPTY_LIST;
        }
예제 #2
0
 /// <summary>
 /// Currently sets the Text Size of the OutputBox
 /// </summary>
 public void InitializeWithSettings(Settings settings)
 {
     this.settings = settings;
     this.SetOutputSize(settings.GetTextSize());
 }