/// <summary>
            /// Populates the TaskItemSurrogate with data that is to be
            /// serialized from the specified TaskItem
            /// </summary>
            /// <param name="taskItem">The TaskItem that contains the data
            /// to be serialized</param>
            public void Load(TaskItem taskItem)
            {
                this.Name     = taskItem.Name;
                this.Size     = taskItem.Size;
                this.Location = taskItem.Location;

                this.BackColor = ThemeManager.ConvertColorToString(taskItem.BackColor);

                this.CustomSettings = new TaskItemInfo.TaskItemInfoSurrogate();
                this.CustomSettings.Load(taskItem.CustomSettings);

                this.Text          = taskItem.Text;
                this.ShowFocusCues = taskItem.ShowFocusCues;
                this.Image         = ThemeManager.ConvertImageToByteArray(taskItem.Image);

                this.Enabled = taskItem.Enabled;
                this.Visible = taskItem.Visible;

                this.Anchor = taskItem.Anchor;
                this.Dock   = taskItem.Dock;

                this.FontName       = taskItem.Font.FontFamily.Name;
                this.FontSize       = taskItem.Font.SizeInPoints;
                this.FontDecoration = taskItem.Font.Style;
                this.UseGdiText     = taskItem.UseGdiText;

                this.Tag = ThemeManager.ConvertObjectToByteArray(taskItem.Tag);
            }
            /// <summary>
            /// Initializes a new instance of the TaskItemSurrogate class with default settings
            /// </summary>
            public TaskItemSurrogate()
            {
                this.Name = null;

                this.Size     = Size.Empty;
                this.Location = Point.Empty;

                this.BackColor = ThemeManager.ConvertColorToString(Color.Empty);

                this.CustomSettings = null;

                this.Text          = null;
                this.ShowFocusCues = false;
                this.Image         = new byte[0];

                this.Enabled = true;
                this.Visible = true;

                this.Anchor = AnchorStyles.None;
                this.Dock   = DockStyle.None;

                this.FontName       = null;
                this.FontSize       = 8.25f;
                this.FontDecoration = FontStyle.Regular;
                this.UseGdiText     = false;

                this.Tag = new byte[0];
            }