Beispiel #1
0
        /// <summary>
        /// 从文件中加载一个代码块
        /// </summary>
        /// <param name="name"></param>
        /// <param name="position"></param>
        /// <param name="id"></param>
        /// <param name="CodeboxType"></param>
        /// <returns></returns>
        public CodeBox LoadXCodeBox(string name, Point position, int id, CodeBox.XAType CodeboxType = CodeBox.XAType.XFunction)
        {
            CodeBox box = new CodeBox(id, this, name, ChileEventCallBack, CodeboxType);

            box.SetPosition(position);
            //xa.AddAttribute(XRadioButton.XAttributeType.XEnter, XRadioButton.XPositonStyle.Left);
            ListCodeBoxChild.Add(id, box);
            this.Children.Add(box);
            return(box);
        }
Beispiel #2
0
        /// <summary>
        /// 创建一个代码块
        /// </summary>
        /// <param name="name"></param>
        /// <param name="id"></param>
        public CodeBox CreateXCodeBox(string name, Point position, CodeBox.XAType CodeboxType = CodeBox.XAType.XFunction)
        {
            int     id = CreadCodeBoxID();
            CodeBox xa = new CodeBox(id, this, name, ChileEventCallBack, CodeboxType);

            xa.SetPosition(position);
            //xa.AddAttribute(XRadioButton.XAttributeType.XEnter, XRadioButton.XPositonStyle.Left);
            ListCodeBoxChild.Add(id, xa);
            this.Children.Add(xa);
            return(xa);
        }