示例#1
0
        public void removeItem(TaskbarItem item)
        {
            int index = taskbarItems.IndexOf(item);

            if (index >= 0)
            {
                taskbarItems.RemoveAt(index);
                item._deconfigureForTaskbar();
            }
        }
示例#2
0
 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);
 }
示例#3
0
 public int getIndexForTaskItem(TaskbarItem item)
 {
     return(taskbarItems.IndexOf(item));
 }
示例#4
0
 public void addItem(TaskbarItem item)
 {
     addItem(item, -1);
 }