Beispiel #1
0
        /// <summary>
        /// CJiaWin8Panel构造函数
        /// </summary>
        public CJiaWin8Panel()
        {
            cJiaLabel1 = new CJiaLabel();
            //this.cJiaLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            //this.cJiaLabel1.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.cJiaLabel1.Appearance.Font      = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Bold);
            this.cJiaLabel1.Appearance.ForeColor = System.Drawing.Color.White;
            this.cJiaLabel1.Location             = new System.Drawing.Point(3, 94);
            this.cJiaLabel1.Name = "cJiaLabel1";
            this.cJiaLabel1.Text = customText;

            Appearance.BackColor            = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            Appearance.Options.UseBackColor = true;
            BorderStyle       = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            Cursor            = System.Windows.Forms.Cursors.Hand;
            LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.UltraFlat;
            LookAndFeel.UseDefaultLookAndFeel = false;
            Controls.Add(cJiaLabel1);
            Size        = new System.Drawing.Size(180, 120);
            MouseEnter += CJiaWin8Panel_MouseEnter;
            MouseLeave += CJiaWin8Panel_MouseLeave;
        }
Beispiel #2
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     AnimatorNS.Animation animation1 = new AnimatorNS.Animation();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCForWaitingForm));
     this.cJiaLoadingBar1 = new CJia.Controls.CJiaLoadingBar();
     this.cJiaPanel1      = new CJia.Controls.CJiaPanel();
     this.cJiaLabel1      = new CJia.Controls.CJiaLabel();
     this.animator1       = new AnimatorNS.Animator(this.components);
     this.cJiaLabel2      = new CJia.Controls.CJiaLabel();
     ((System.ComponentModel.ISupportInitialize)(this.cJiaLoadingBar1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cJiaPanel1)).BeginInit();
     this.cJiaPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // cJiaLoadingBar1
     //
     this.animator1.SetDecoration(this.cJiaLoadingBar1, AnimatorNS.DecorationType.BottomMirror);
     this.cJiaLoadingBar1.Location = new System.Drawing.Point(27, 87);
     this.cJiaLoadingBar1.Name     = "cJiaLoadingBar1";
     this.cJiaLoadingBar1.Properties.LookAndFeel.SkinName = "Office 2010 Blue";
     this.cJiaLoadingBar1.Properties.LookAndFeel.UseDefaultLookAndFeel = false;
     this.cJiaLoadingBar1.Properties.ShowTitle = true;
     this.cJiaLoadingBar1.Size     = new System.Drawing.Size(483, 29);
     this.cJiaLoadingBar1.TabIndex = 0;
     //
     // cJiaPanel1
     //
     this.cJiaPanel1.Appearance.BackColor            = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(180)))), ((int)(((byte)(228)))));
     this.cJiaPanel1.Appearance.Options.UseBackColor = true;
     this.cJiaPanel1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.cJiaPanel1.Controls.Add(this.cJiaLabel1);
     this.animator1.SetDecoration(this.cJiaPanel1, AnimatorNS.DecorationType.None);
     this.cJiaPanel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.cJiaPanel1.Location = new System.Drawing.Point(0, 0);
     this.cJiaPanel1.LookAndFeel.UseDefaultLookAndFeel = false;
     this.cJiaPanel1.Name     = "cJiaPanel1";
     this.cJiaPanel1.Size     = new System.Drawing.Size(537, 41);
     this.cJiaPanel1.TabIndex = 1;
     //
     // cJiaLabel1
     //
     this.cJiaLabel1.Appearance.Font      = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
     this.cJiaLabel1.Appearance.ForeColor = System.Drawing.Color.White;
     this.animator1.SetDecoration(this.cJiaLabel1, AnimatorNS.DecorationType.None);
     this.cJiaLabel1.Location = new System.Drawing.Point(6, 13);
     this.cJiaLabel1.Name     = "cJiaLabel1";
     this.cJiaLabel1.Size     = new System.Drawing.Size(92, 16);
     this.cJiaLabel1.TabIndex = 2;
     this.cJiaLabel1.Text     = "正在加载中...";
     //
     // animator1
     //
     this.animator1.AnimationType      = AnimatorNS.AnimationType.Custom;
     this.animator1.Cursor             = null;
     animation1.AnimateOnlyDifferences = true;
     animation1.BlindCoeff             = ((System.Drawing.PointF)(resources.GetObject("animation1.BlindCoeff")));
     animation1.LeafCoeff            = 0F;
     animation1.MaxTime              = 1F;
     animation1.MinTime              = 0F;
     animation1.MosaicCoeff          = ((System.Drawing.PointF)(resources.GetObject("animation1.MosaicCoeff")));
     animation1.MosaicShift          = ((System.Drawing.PointF)(resources.GetObject("animation1.MosaicShift")));
     animation1.MosaicSize           = 0;
     animation1.Padding              = new System.Windows.Forms.Padding(0);
     animation1.RotateCoeff          = 0F;
     animation1.RotateLimit          = 0F;
     animation1.ScaleCoeff           = ((System.Drawing.PointF)(resources.GetObject("animation1.ScaleCoeff")));
     animation1.SlideCoeff           = ((System.Drawing.PointF)(resources.GetObject("animation1.SlideCoeff")));
     animation1.TimeCoeff            = 0F;
     animation1.TransparencyCoeff    = 0F;
     this.animator1.DefaultAnimation = animation1;
     //
     // cJiaLabel2
     //
     this.cJiaLabel2.Appearance.Font = new System.Drawing.Font("Tahoma", 10F);
     this.animator1.SetDecoration(this.cJiaLabel2, AnimatorNS.DecorationType.None);
     this.cJiaLabel2.Location = new System.Drawing.Point(27, 63);
     this.cJiaLabel2.Name     = "cJiaLabel2";
     this.cJiaLabel2.Size     = new System.Drawing.Size(20, 16);
     this.cJiaLabel2.TabIndex = 3;
     this.cJiaLabel2.Text     = "     ";
     //
     // UCForWaitingForm
     //
     this.Appearance.BackColor            = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
     this.Appearance.Options.UseBackColor = true;
     this.AutoScaleDimensions             = new System.Drawing.SizeF(7F, 14F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.cJiaLabel2);
     this.Controls.Add(this.cJiaPanel1);
     this.Controls.Add(this.cJiaLoadingBar1);
     this.animator1.SetDecoration(this, AnimatorNS.DecorationType.None);
     this.Name = "UCForWaitingForm";
     this.Size = new System.Drawing.Size(537, 175);
     ((System.ComponentModel.ISupportInitialize)(this.cJiaLoadingBar1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cJiaPanel1)).EndInit();
     this.cJiaPanel1.ResumeLayout(false);
     this.cJiaPanel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }