public void AddFrameInfo(FrameInfo frameInfo)
 {
     this.Frames [frameInfo.ID] = frameInfo;
 }
        public static void SetOneLayerActiveInFrame(int layerID, FrameInfo frameItem)
        {
            foreach (LayerInfo eachLayerInfo in frameItem.Layers.Values) {

                if (eachLayerInfo.ID == layerID) {
                    eachLayerInfo.IsCanvasActive = true;
                } else {
                    eachLayerInfo.IsCanvasActive = false;
                }//end if else

            }//end foreach
        }