Пример #1
0
        public static ItemControl GetInstance()
        {
            ItemControl control;

            if (!ms_ControlStore.TryDequeue(out control))
            {
                control = new ItemControl();
            }
            return(control);
        }
Пример #2
0
 public static void SetInstance(ItemControl control)
 {
     ms_ControlStore.Enqueue(control);
 }