コード例 #1
0
        public void RemoveFrameGrid(bool bAliasesToo)
        {
            frameGrid = null;

            _frameItem fi;
            _frameName fn;

            for (int i = 0; i < ListFrameItems.Count; i++)
            {
                fi = ListFrameItems[i];
                for (int j = 0; j < fi.names.Count; j++)
                {
                    fn = fi.names[j];
                    if ((fn.source == FrameSource.Grid) || (fn.source == FrameSource.Name))
                    {
                        fi.names.RemoveAt(j--);
                        LookupFrameItems.Remove(fn.name);
                    }
                }

                if (bAliasesToo)
                {
                    CleanupAliasesAt(fi);
                }

                if (fi.names.Count == 0)
                {
                    ListFrameItems.RemoveAt(i--);
                }
            }
        }
コード例 #2
0
        public void ConvertGridtoList(bool bConvertDefaults, bool bConvertNames)
        {
            if (frameGrid == null)
            {
                return;
            }
            if (frameList == null)
            {
                CreateFrameList();
            }

            frameGrid = null;

            _frameItem fi;
            _frameName fn;

            for (int i = 0; i < ListFrameItems.Count; i++)
            {
                fi = ListFrameItems[i];
                for (int j = 0; j < fi.names.Count; j++)
                {
                    fn = fi.names[j];
                    if (fn.source == FrameSource.Grid)
                    {
                        if (bConvertDefaults)
                        {
                            SetFrameToList(fi, fn);
                        }
                        else
                        {
                            fi.names.RemoveAt(j--);
                            LookupFrameItems.Remove(fn.name);
                        }
                    }
                    else if (fn.source == FrameSource.Name)
                    {
                        if (bConvertNames)
                        {
                            SetFrameToList(fi, fn);
                        }
                        else
                        {
                            fi.names.RemoveAt(j--);
                            LookupFrameItems.Remove(fn.name);
                        }
                    }
                }

                if (fi.names.Count == 0)
                {
                    ListFrameItems.RemoveAt(i--);
                }
            }
        }
コード例 #3
0
 public void CreateFrameGrid()
 {
     frameGrid = new _frameGrid(1, 1, 1, 1);
 }