コード例 #1
0
 /* =========================================================================================
  * Create Inputs
  * =========================================================================================
  */
 private void bitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Bit g = new Bit();
     g.Location = calcLocation();
     g.Size = s.Equals(LogicGate.small) ? Bit.small : s.Equals(LogicGate.medium) ? Bit.medium : Bit.large;
     g.Input = false;
     //g.ContextMenuStrip = cmsControl;
     g.Name = g.GetType().Name + namecntr++;
     this.Controls.Add(g);
 }