Пример #1
0
        public static TaskbarHolder Create(string name, double priority, Func <Tuple <TaskbarState, double> > periodicCallback = null)
        {
            var holder = new TaskbarHolder(name, priority, periodicCallback);

            AddSorted(Holders, holder, TaskbarHolder.PriorityComparer);
            Task.Delay(200).ContinueWithInMainThread(t => Update());
            return(holder);
        }
Пример #2
0
 internal static void Delete(TaskbarHolder holder)
 {
     Holders.Remove(holder);
     Update();
 }