Beispiel #1
0
 /// <summary>
 /// Init constructor of CustomTaskColumnInfo.
 /// </summary>
 public CustomTaskColumnInfo(string name, string toolTip, int widthDefault, int widthMin, int sortPriority, int fieldNumber, int imageIndex, bool visible, CustomTaskColumnFlags flags)
 {
     this.header       = null;
     this.name         = name;
     this.toolTip      = (string.IsNullOrEmpty(toolTip) ? name : toolTip);
     this.widthDefault = widthDefault;
     this.widthMin     = widthMin;
     this.sortPriority = sortPriority;
     this.fieldNumber  = fieldNumber;
     this.imageIndex   = imageIndex;
     this.visible      = visible;
     this.flags        = flags;
 }
Beispiel #2
0
 /// <summary>
 /// Registers new custom column for the task list.
 /// </summary>
 public void RegisterColumn(string name, string toolTip, int widthDefault, int widthMin, int sortPriority, int fieldNumber, int imageIndex, bool visible, CustomTaskColumnFlags flags)
 {
     RegisterColumn(new CustomTaskColumnInfo(name, toolTip, widthDefault, widthMin, sortPriority, fieldNumber, imageIndex, visible, flags));
 }