Ejemplo n.º 1
0
        internal void button_ZuClick(object sender, MouseEventArgs e)
        {
            switch (e.Button)
            {
            case MouseButtons.Right:
                Button btn = (Button)sender;

                if (btn == btnArtikel)
                {
                    if (frmArt != null)
                    {
                        frmArt.Close();
                    }
                }
                if (btn == btnKunde)
                {
                    if (frmKun != null)
                    {
                        frmKun.Close();
                    }
                }
                if (btn == btnRechnung)
                {
                    if (frmRech != null)
                    {
                        frmRech.Close();
                    }
                }
                if (btn == btnStatistik)
                {
                    if (frmStat != null)
                    {
                        frmStat.Close();
                    }
                }
                if (btn == btnUmsatzsteuer)
                {
                    if (frmUst != null)
                    {
                        frmUst.Close();
                    }
                }
                if (btn == btnWarenkorb)
                {
                    if (frmWk != null)
                    {
                        frmWk.Close();
                    }
                }



                break;
            }
        }
Ejemplo n.º 2
0
 private void btnFensterSchließen_Click(object sender, EventArgs e)
 {
     if (frmArt != null)
     {
         frmArt.Close();
     }
     if (frmKun != null)
     {
         frmKun.Close();
     }
     if (frmWar != null)
     {
         frmWar.Close();
     }
     if (frmUSt != null)
     {
         frmUSt.Close();
     }
     if (frmStat != null)
     {
         frmStat.Close();
     }
     if (frmRech != null)
     {
         frmRech.Close();
     }
 }