예제 #1
0
        public List <Component_Control> Get_Controls(string ComponentID, Control_Type Control_Type, string SortOrder)
        {
            MySQL_DataConn myDP = new MySQL_DataConn(ConfigurationManager.ConnectionStrings["e2CMS"].ConnectionString);

            DataSet myDS = myDP.Get_Controls(ComponentID, StringEnum.GetStringValue(Control_Type), SortOrder);

            List <Component_Control> list = new List <Component_Control>();

            foreach (DataRow myDR in myDS.Tables[0].Rows)
            {
                list.Add(new Component_Control(myDR));
            }

            return(list);
        }
예제 #2
0
        public Component_Control Get_Control(string ComponentID, Control_Type Control_Type)
        {
            MySQL_DataConn myDP = new MySQL_DataConn(ConfigurationManager.ConnectionStrings["e2CMS"].ConnectionString);

            return(new Component_Control(myDP.Get_Control(ComponentID, StringEnum.GetStringValue(Control_Type))));
        }