Esempio n. 1
0
        private EBMIndex.EBIndexEx GetEBIndex()
        {
            try
            {
                EBMIndex.EBIndexEx index = new EBMIndex.EBIndexEx();
                index.SendState = EBIndex == null ? false : EBIndex.SendState;
                index.EBIndex   = new EBIndex();
                index.S_EBM_id  = textS_EBM_id.Text.Trim();
                index.S_EBM_original_network_id = textS_EBM_original_network_id.Text.Trim();
                index.S_EBM_start_time          = timePickerS_EBM_start_time.Value.ToString("yyyy-MM-dd HH:mm:ss");
                index.S_EBM_end_time            = timePickerS_EBM_end_time.Value.ToString("yyyy-MM-dd HH:mm:ss");
                index.S_EBM_type  = textS_EBM_type.Text.Trim();
                index.S_EBM_class = (string)cbBoxS_EBM_class.SelectedValue;
                index.S_EBM_level = (string)cbBoxS_EBM_level.SelectedValue;

                index.List_EBM_resource_code      = pnlResourceCode.GetData();
                index.BL_details_channel_indicate = checkBoxBL_details_channel_indicate.Checked;
                index.DesFlag = checkBoxDes.Checked;
                index.S_details_channel_transport_stream_id = textS_details_channel_transport_stream_id.Text.Trim();
                index.S_details_channel_program_number      = textS_details_channel_program_number.Text.Trim();
                index.S_details_channel_PCR_PID             = textS_details_channel_PCR_PID.Text.Trim();

                index.DeliverySystemDescriptor = pnlDetChlDes.GetData();
                index.List_ProgramStreamInfo   = pnlProgramStreamInfo.GetData();
                index.NickName = EBIndex == null ? string.Empty : EBIndex.NickName;
                return(index);
            }
            catch
            {
                return(null);
            }
        }
Esempio n. 2
0
 public EBMIndexInfo(OperateType type, EBMIndex.EBIndexEx ebIndex)
 {
     InitializeComponent();
     if (type != OperateType.Add)
     {
         EBIndex = ebIndex;
     }
     OperateType      = type;
     tip              = new ToolTip();
     tip.UseAnimation = true;
     tip.UseFading    = true;
     tip.SetToolTip(btnAddMinute, "开始时间增加指定分钟数");
     tip.SetToolTip(btnGetSysTime, "获取系统时间");
     InitType();
     InitData();
 }