Exemplo n.º 1
0
        /// <summary>
        /// 根据电影方块信息,生成临时电影方块
        /// </summary>
        /// <param name="label"></param>
        /// <returns></returns>
        private ColorBorderLabel GetNewTempFilmLabel(ColorBorderLabel label)
        {
            FilmAndFilmMode film = label.Tag as FilmAndFilmMode;

            ColorBorderLabel colorBorderLabel = new ColorBorderLabel(dataManager);


            colorBorderLabel.BackColor   = label.BackColor;
            colorBorderLabel.BorderColor = label.BorderColor;
            colorBorderLabel.Width       = spPanShowPlan.GetFilmLabelWidth(film);
            colorBorderLabel.TextAlign   = label.TextAlign;

            colorBorderLabel.Text = label.Text;
            colorBorderLabel.Font = fontOfFilmLabel;
            colorBorderLabel.Tag  = dataManager.GetNewShowPlan(film);

            return(colorBorderLabel);
        }