public TreeNode CreateRequest(string text, PriorityIconIndex priority = PriorityIconIndex.PRIORITY_NONE, bool status = false, string desc = "") { TreeNode result = new TreeNode(); result.Text = text; result.ImageIndex = result.SelectedImageIndex = (int)priority; result.Checked = status; result.ToolTipText = desc; return result; }
public TreeNode CreateRequest(string text, PriorityIconIndex priority = PriorityIconIndex.PRIORITY_NONE, bool status = false, string desc = "") { TreeNode result = new TreeNode(); result.Text = text; result.ImageIndex = result.SelectedImageIndex = (int)priority; result.Checked = status; result.ToolTipText = desc; return(result); }