Пример #1
0
 private void myMDIForm_Load(object sender, EventArgs e)
 {
     for (int i = 0; i < 5; i++)
     {
         HamburgerMenu    hmenu = new HamburgerMenu();
         ExtraMalzemeMenu emenu = new ExtraMalzemeMenu();
         hmenu.MenuAdi            = standartmenuler[i * 2];
         hmenu.MenuFiyati         = Convert.ToDecimal(standartmenuler[(i * 2) + 1]);
         emenu.ExtraMazlzemeAdi   = standartextralar[i * 2];
         emenu.ExtraMalzemeFiyati = Convert.ToDecimal(standartextralar[(i * 2) + 1]);
         rMenuEkle(hmenu);
         rExtraMalzemeEkle(emenu);
     }
 }
Пример #2
0
 private void btnKaydet_Click(object sender, EventArgs e)
 {
     try
     {
         HamburgerMenu menu = new HamburgerMenu();
         menu.MenuAdi    = tbManuAdi.Text;
         menu.MenuFiyati = nUDMenuFiyati.Value;
         ((myMDIForm)MdiParent).rMenuEkle(menu);
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #3
0
 public void rMenuEkle(HamburgerMenu a)
 {
     rHamburgerMenu.Add(a);
 }