예제 #1
0
//		public virtual void DrawMemberAttribute(XBaseWindow window)
//		{
//			memberAttribute = window.CreateEnumSelectable( memberAttribute ) as MemberAttributes;
//		}

        public virtual void DrawComments(XBaseWindow window)
        {
            XBaseWindow.CreateLabel("Comments");
            for (int pos = 0; pos < comments.Count; pos++)
            {
                //  TODO loop in comments.Count
                XBaseWindow.BeginHorizontal();
                comments[pos] = XBaseWindow.CreateStringField(comments[pos]);
                XBaseWindow.DoButton("Delete", () => comments.RemoveAt(pos));
                XBaseWindow.EndHorizontal();
            }
        }
예제 #2
0
 public virtual void DrawCustomeAttribute(XBaseWindow window)
 {
     XBaseWindow.CreateLabel("CustomAttributes");
     for (int pos = 0; pos < attributes.Count; pos++)
     {
         //  TODO loop in comments.Count
         XBaseWindow.BeginHorizontal();
         attributes[pos].name = XBaseWindow.CreateStringField(attributes[pos].name);
         XBaseWindow.DoButton <XCodeParameter>("Parameter", ParameterCreate, attributes[pos].parameter);
         XBaseWindow.DoButton("Delete", () => attributes.RemoveAt(pos));
         XBaseWindow.EndHorizontal();
     }
 }
예제 #3
0
        void DrawParameters(XBaseWindow window)
        {
            window.CreateLabel("Parameters");
            for (int pos = 0; pos < parameters.Count; pos++)
            {
                //  TODO loop in comments.Count
                window.BeginHorizontal();
//				parameters[pos].type = window.CreateStringField( parameters[pos].type );
                parameters[pos].Draw(window);
                window.DoButton("Delete", () => parameters.RemoveAt(pos));
                window.EndHorizontal();
            }
        }