Esempio n. 1
0
        public DailyBroadcastInfo(OperateType type, byte tag, DailyBroadcast.DailyProgram program)
        {
            InitializeComponent();
            pnlRdsTransfer          = new Layouts.DailyBroadcastRdsTransferLayout();
            pnlRdsTransfer.Location = Point.Empty;
            pnlRdsTransfer.Visible  = false;
            Controls.Add(pnlRdsTransfer);

            this.tag     = tag;
            this.type    = type;
            this.Program = program;
            InitPanelLayout();
        }
Esempio n. 2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            switch (tag)
            {
            case 1:
                if (!pnlChangeProgram.ValidatData())
                {
                    return;
                }
                Program = pnlChangeProgram.GetData();
                break;

            case 2:
                if (!pnlStopProgram.ValidatData())
                {
                    return;
                }
                Program = pnlStopProgram.GetData();
                break;

            case 3:
                if (!pnlPlayCtrl.ValidatData())
                {
                    return;
                }
                Program = pnlPlayCtrl.GetData();
                break;

            case 4:
                if (!pnlOutSwitch.ValidatData())
                {
                    return;
                }
                Program = pnlOutSwitch.GetData();
                break;

            case 5:
                if (!pnlRdsTransfer.ValidatData())
                {
                    return;
                }
                Program = pnlRdsTransfer.GetData();
                break;
            }
            DialogResult = DialogResult.OK;
        }