コード例 #1
0
 public Form2(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType)
 {
     InitializeComponent();
     m_tbBody.Text   = m_BodyPart.ToString();
     m_tbEngine.Text = m_EnginePart.ToString();
     m_tbTires.Text  = m_TirePart.ToString();
     m_tbLogo.Text   = m_BrandType.ToString();
 }
コード例 #2
0
 public override ChevySilverado createSilverado(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public override ChevySilverado createSilverado(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType)
 {
     return(new ChevySilverado(m_BodyPart, m_EnginePart, m_TirePart, m_BrandType));
 }
コード例 #4
0
 public override ChevyMalibu createMalibu(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType)
 {
     return(new ChevyMalibu(m_BodyPart, m_EnginePart, m_TirePart, m_BrandType));
 }
コード例 #5
0
        public ChevyCamaro(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType)
        {
            Form2 f2 = new Form2(m_BodyPart, m_EnginePart, m_TirePart, m_BrandType);

            f2.Visible = true;
        }
コード例 #6
0
 public abstract ChevySilverado createSilverado(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType);
コード例 #7
0
 public abstract ChevyMalibu createMalibu(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType);
コード例 #8
0
 public abstract ChevyCamaro createCamaro(ChevyFactory.BodyType m_BodyPart, ChevyFactory.Engine m_EnginePart, ChevyFactory.Tires m_TirePart, ChevyFactory.Brand m_BrandType);