コード例 #1
0
ファイル: ModuleMgr.cs プロジェクト: SnowFox108/Nexus
        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
ファイル: ModuleMgr.cs プロジェクト: SnowFox108/Nexus
        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))));
        }