public void removeItem(TaskbarItem item) { int index = taskbarItems.IndexOf(item); if (index >= 0) { taskbarItems.RemoveAt(index); item._deconfigureForTaskbar(); } }
public void addItem(TaskbarItem item, int index) { if (index == -1) { taskbarItems.Add(item); } else { taskbarItems.Insert(index, item); } item._configureForTaskbar(this, taskbarWidget.createWidgetT("Button", "Medical.TaskbarButton", 0, 0, (int)itemSize.Width, (int)itemSize.Height, Align.Left | Align.Top, "") as Button); }
public int getIndexForTaskItem(TaskbarItem item) { return(taskbarItems.IndexOf(item)); }
public void addItem(TaskbarItem item) { addItem(item, -1); }