Esempio n. 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);
        }
Esempio n. 2
0
 internal static void Delete(TaskbarHolder holder)
 {
     Holders.Remove(holder);
     Update();
 }