private int IndexOfInSpringStylesList(Bar bar)
        {
            BarItemCollection springStyleItems = ((MyBarAndDockingController)Manager.Controller).SpringStyleItems;

            for (int i = 0; i < springStyleItems.Count; i++)
            {
                if (springStyleItems[i].Bar == bar)
                {
                    return(i);
                }
            }

            return(-1);
        }
 private void Init()
 {
     springStyleItems = new BarItemCollection(this);
 }