Пример #1
0
 public select_pawn_screen(ref Storage s, ref Guna.UI2.WinForms.Guna2PictureBox player1Pawn,
                           ref Guna.UI2.WinForms.Guna2PictureBox player2Pawn, ref Guna.UI2.WinForms.Guna2PictureBox player3Pawn,
                           ref Guna.UI2.WinForms.Guna2PictureBox player4Pawn, ref System.Windows.Forms.PictureBox player1Icon,
                           ref System.Windows.Forms.PictureBox player2Icon, ref System.Windows.Forms.PictureBox player3Icon,
                           ref System.Windows.Forms.PictureBox player4Icon, ref Guna.UI2.WinForms.Guna2HtmlLabel player1Label,
                           ref Guna.UI2.WinForms.Guna2HtmlLabel player2Label, ref Guna.UI2.WinForms.Guna2HtmlLabel player3Label,
                           ref Guna.UI2.WinForms.Guna2HtmlLabel player4Label)
 {
     dataBase = s;
     InitializeComponent();
     pawns = new Guna.UI2.WinForms.Guna2PictureBox[4] {
         player1Pawn, player2Pawn, player3Pawn, player4Pawn
     };
     icons = new System.Windows.Forms.PictureBox[4] {
         player1Icon, player2Icon, player3Icon, player4Icon
     };
     nameLabels = new Guna.UI2.WinForms.Guna2HtmlLabel[4] {
         player1Label, player2Label, player3Label, player4Label
     };
     timer1.Start();
     boolarr = new bool[6];
     for (int i = 0; i < 6; i++)
     {
         boolarr[i] = true;
     }
 }
 private void payButton_Click(object sender, EventArgs e)
 {
     playButtonClick();
     p1 = new Guna.UI2.WinForms.Guna2PictureBox();
     this.p1.BackColor = System.Drawing.Color.Transparent;
     this.p1.Location  = new System.Drawing.Point(50, 50);
     this.p1.Name      = "p1";
     this.p1.ShadowDecoration.Parent = this.p1;
     this.p1.Size     = new System.Drawing.Size(40, 40);
     this.p1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.p1.TabIndex = 7;
     this.p1.TabStop  = false;
     this.p1.Visible  = false;
     this.p1.Image    = Monopoly_Project.Properties.Resources.buttons_icon;
     this.p1.Visible  = true;
     Controls.Add(p1);
     this.Dispose();
 }
 private void animations_pictures(Guna.UI2.WinForms.Guna2PictureBox pictureBox)
 {
     pictureBox.Visible = false;
     Transition1.ShowSync(pictureBox);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmSplashView));
     this.label1 = new System.Windows.Forms.Label();
     this.guna2ProgressBar1 = new Guna.UI2.WinForms.Guna2ProgressBar();
     this.guna2CustomGradientPanel1 = new Guna.UI2.WinForms.Guna2CustomGradientPanel();
     this.loading_timer = new System.Windows.Forms.Timer(this.components);
     this.guna2PictureBox1 = new Guna.UI2.WinForms.Guna2PictureBox();
     this.guna2CustomGradientPanel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.guna2PictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.ForeColor = System.Drawing.Color.Black;
     this.label1.Location = new System.Drawing.Point(101, 449);
     this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(102, 13);
     this.label1.TabIndex = 4;
     this.label1.Text = "Cargando Sistema...";
     //
     // guna2ProgressBar1
     //
     this.guna2ProgressBar1.AutoRoundedCorners = true;
     this.guna2ProgressBar1.BackColor = System.Drawing.Color.Transparent;
     this.guna2ProgressBar1.BorderRadius = 5;
     this.guna2ProgressBar1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
     this.guna2ProgressBar1.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
     this.guna2ProgressBar1.Location = new System.Drawing.Point(101, 472);
     this.guna2ProgressBar1.Margin = new System.Windows.Forms.Padding(4);
     this.guna2ProgressBar1.Name = "guna2ProgressBar1";
     this.guna2ProgressBar1.ProgressColor = System.Drawing.Color.White;
     this.guna2ProgressBar1.ProgressColor2 = System.Drawing.Color.White;
     this.guna2ProgressBar1.ShadowDecoration.Parent = this.guna2ProgressBar1;
     this.guna2ProgressBar1.Size = new System.Drawing.Size(541, 12);
     this.guna2ProgressBar1.TabIndex = 3;
     this.guna2ProgressBar1.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault;
     //
     // guna2CustomGradientPanel1
     //
     this.guna2CustomGradientPanel1.Controls.Add(this.guna2PictureBox1);
     this.guna2CustomGradientPanel1.Controls.Add(this.label1);
     this.guna2CustomGradientPanel1.Controls.Add(this.guna2ProgressBar1);
     this.guna2CustomGradientPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.guna2CustomGradientPanel1.FillColor2 = System.Drawing.Color.DodgerBlue;
     this.guna2CustomGradientPanel1.Location = new System.Drawing.Point(0, 0);
     this.guna2CustomGradientPanel1.Name = "guna2CustomGradientPanel1";
     this.guna2CustomGradientPanel1.ShadowDecoration.Parent = this.guna2CustomGradientPanel1;
     this.guna2CustomGradientPanel1.Size = new System.Drawing.Size(757, 554);
     this.guna2CustomGradientPanel1.TabIndex = 5;
     this.guna2CustomGradientPanel1.Paint += new System.Windows.Forms.PaintEventHandler(this.guna2CustomGradientPanel1_Paint);
     //
     // loading_timer
     //
     this.loading_timer.Tick += new System.EventHandler(this.loading_timer_Tick_1);
     //
     // guna2PictureBox1
     //
     this.guna2PictureBox1.BackColor = System.Drawing.Color.Transparent;
     this.guna2PictureBox1.Image = global::ProyectoGestionSach.Properties.Resources.GestionSachLogo;
     this.guna2PictureBox1.Location = new System.Drawing.Point(235, 146);
     this.guna2PictureBox1.Name = "guna2PictureBox1";
     this.guna2PictureBox1.ShadowDecoration.Parent = this.guna2PictureBox1;
     this.guna2PictureBox1.Size = new System.Drawing.Size(300, 200);
     this.guna2PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.guna2PictureBox1.TabIndex = 5;
     this.guna2PictureBox1.TabStop = false;
     //
     // FrmSplashView
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(757, 554);
     this.Controls.Add(this.guna2CustomGradientPanel1);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Name = "FrmSplashView";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "FrmSplashView";
     this.guna2CustomGradientPanel1.ResumeLayout(false);
     this.guna2CustomGradientPanel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.guna2PictureBox1)).EndInit();
     this.ResumeLayout(false);
 }