Ejemplo n.º 1
0
        //private bool _isSelectedStation = true;
        #endregion //IsSelectedStation

        #region BindStationCheckBoxList
        /// <summary>
        ///
        /// </summary>
        /// <param name="deviceTypes"></param>
        public void BindStationCheckBoxList(string[] deviceTypes)
        {
            ListItem li = this.DropDownList1.SelectedItem;

            if (li != null)
            {
                string value     = li.Value;
                int    channelID = Convert.ToInt32(value);

                ChannelDataBinder.StationOfChannelBind(channelID, cblStation, deviceTypes);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        private void BindStationCheckBoxList()
        {
            ListItem li = this.DropDownList1.SelectedItem;

            if (li != null)
            {
                string   value            = li.Value;
                int      channelID        = Convert.ToInt32(value);
                string[] deviceTypeFilter = this.GetFilterDeviceTypeArray();
                if (deviceTypeFilter != null && deviceTypeFilter.Length > 0)
                {
                    ChannelDataBinder.StationOfChannelBind(channelID, cblStation,
                                                           deviceTypeFilter, IsSelectedStation);
                }
                else
                {
                    ChannelDataBinder.StationOfChannelBind(channelID, cblStation,
                                                           IsSelectedStation);
                }
            }
        }