public static ItemControl GetInstance() { ItemControl control; if (!ms_ControlStore.TryDequeue(out control)) { control = new ItemControl(); } return(control); }
public static void SetInstance(ItemControl control) { ms_ControlStore.Enqueue(control); }