コード例 #1
0
        protected override void SiparisDuz(int spno, string t, string i, bool b, bool l)
        {
            TostSinif           tost   = null;
            IcecekSinif         icecek = null;
            Iicindekiler        ici    = new KadikoySube();
            List <SiparisSinif> temp   = new List <SiparisSinif>();

            if (t != null)
            {
                if (t.Equals("Kasarli"))
                {
                    tost = new KasarliTost(ici);
                }
                else if (t.Equals("Ayvalik"))
                {
                    tost = new AyvalikTostu(ici);
                }
                else
                {
                    tost = new KarisikTost(ici);
                }
                temp.Add(tost);
            }

            if (i != null)
            {
                if (i.Equals("Oralet"))
                {
                    icecek = new Oralet();
                }
                else if (i.Equals("Ihlamur"))
                {
                    icecek = new Ihlamur();
                }
                else
                {
                    icecek = new SiyahCay();
                }

                if (b)
                {
                    icecek = new Bal(icecek);
                }
                if (l)
                {
                    icecek = new Limon(icecek);
                }
                temp.Add(icecek);
            }
            siparisler[spno][0] = null;
            siparisler[spno][0] = tost;
            siparisler[spno][1] = null;
            siparisler[spno][1] = icecek;
        }
コード例 #2
0
 public Limon(IcecekSinif icecek)
 {
     this.icecek = icecek;
 }
コード例 #3
0
ファイル: Bal.cs プロジェクト: skaimm/CSharp
 public Bal(IcecekSinif icecek)
 {
     this.icecek = icecek;
 }