Пример #1
0
        /// <summary>
        /// </summary>
        public virtual void ShowSlide()
        {
            Limnor.Drawing2D.DrawTextRect DrawTextRect121a6cf01 = null;
            this.BackgroundImage = null;
            this.DrawingLayers.ClearDrawings();
            if (System.IO.File.Exists(this.SlideFilename))
            {
                if (System.IO.File.Exists(this.SlideImageFilename))
                {
                    this.BackgroundImage = System.Drawing.Image.FromFile(this.SlideImageFilename);
                }
                this.LoadDrawingsFromFile(this.SlideFilename);
                goto l_ad22d89f;
            }
            else
            {
                this.Timer1.Stop();
                DrawTextRect121a6cf01            = new Limnor.Drawing2D.DrawTextRect();
                DrawTextRect121a6cf01.Rectangle  = this.ClientRectangle;
                DrawTextRect121a6cf01.TextFont   = new System.Drawing.Font("[FontFamily: Name=Times New Roman]", 27.75F);
                DrawTextRect121a6cf01.TextColor  = System.Drawing.Color.FromArgb(((int)(255)), ((int)(0)), ((int)(0)), ((int)(255)));
                DrawTextRect121a6cf01.TextString = "The End";
                this.DrawingLayers.AddDrawing(DrawTextRect121a6cf01);
                goto l_ad22d89f;
            }
l_ad22d89f:
            this.Refresh();
            this.Text = this.SlideInfo;
            return;
        }
        public override void Copy(DrawingItem obj)
        {
            base.Copy(obj);
            DrawTextRect r = obj as DrawTextRect;

            if (r != null)
            {
                font               = r.font;
                TextColor          = r.TextColor;
                text               = r.text;
                HideRectangle      = r.HideRectangle;
                WordWrap           = r.WordWrap;
                _textRect          = r._textRect;
                TextAlign          = r.TextAlign;
                this.EnableEditing = r.EnableEditing;
                this.TabIndex      = r.TabIndex;
            }
        }