コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        private void Fill()
        {
            DataTable tbl = ChannelDBI.GetChannelDataTable();

            this.GridView1.DataSource = tbl;
            this.GridView1.DataBind();
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="?"></param>
        public void SetChannalInfo(int channelID)
        {
            this.ChannelID = channelID;
            DataTable tbl = ChannelDBI.GetChannelDataTable(channelID);

            if (tbl.Rows.Count > 0)
            {
                DataRow r = tbl.Rows[0];
                this.ChannelName   = r["ChannelName"].ToString();
                this.ChannelRemark = r["Remark"].ToString();
                //this.StationCollection =

                this.StationCollection.Clear();
                StationCollection stationsOfChannel = GetStationList(channelID);
                //this.StationCollection.Add(stationsOfChannel
                this.StationCollection = stationsOfChannel;
            }
        }