public Supply(Player p, int n,int m,Form1 f,string s) { cost = n; player = p; Click += new EventHandler(CardClick); this.Counter.Location = new System.Drawing.Point(40, 0); this.Counter.Size = new System.Drawing.Size(30, 30); this.Counter.Image = global::dominion.Properties.Resources.カウンター; this.Counter.BackColor = System.Drawing.Color.Transparent; this.Counter.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.Counter.Name = "カウント"; this.Supplycount.AutoSize = true; this.Supplycount.BackColor = System.Drawing.Color.Transparent; this.Supplycount.Location = new System.Drawing.Point(8, 8); this.Supplycount.Name = "テキスト"; this.Supplycount.Size = new System.Drawing.Size(17, 12); this.Supplycount.Text = m.ToString(); this.Counter.Controls.Add(this.Supplycount); this.Controls.Add(this.Counter); Type[s] = true; Count = m; this.f = f; this.f = player.GetForm(); MouseHover += new EventHandler(PopText); MouseLeave += new EventHandler(CloseText); }
public Supply(Player p, int n, int m, Form1 f, string s) { cost = n; player = p; Click += new EventHandler(CardClick); this.Counter.Location = new System.Drawing.Point(40, 0); this.Counter.Size = new System.Drawing.Size(30, 30); this.Counter.Image = global::dominion.Properties.Resources.カウンター; this.Counter.BackColor = System.Drawing.Color.Transparent; this.Counter.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.Counter.Name = "カウント"; this.Supplycount.AutoSize = true; this.Supplycount.BackColor = System.Drawing.Color.Transparent; this.Supplycount.Location = new System.Drawing.Point(8, 8); this.Supplycount.Name = "テキスト"; this.Supplycount.Size = new System.Drawing.Size(17, 12); this.Supplycount.Text = m.ToString(); this.Counter.Controls.Add(this.Supplycount); this.Controls.Add(this.Counter); Type[s] = true; Count = m; this.f = f; this.f = player.GetForm(); MouseHover += new EventHandler(PopText); MouseLeave += new EventHandler(CloseText); }