private void buttonSubMenuTotalZi_Click(object sender, EventArgs e)
 {
     if ((Application.OpenForms["VanzariAzi"] as VanzariAzi) != null)
     {
         VanzariAzi VanzariAziInstance = (VanzariAzi)Application.OpenForms["VanzariAzi"];
         VanzariAziInstance.BringToFront();
     }
     else
     {
         if (VanzariAziRequested != null)
         {
             VanzariAziRequested(sender, e);
         }
     }
 }
        private void buttonFinalizare_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Inregistrare vanzare?", "Bon consum vanzare", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)

            {
                if (this.dataGridViewTotalClient.Rows.Count > 0)
                {
                    if (ButtonInregistrareVanzarePressed != null)
                    {
                        ButtonInregistrareVanzarePressed(sender, e);
                    }

                    if ((Application.OpenForms["VanzariAzi"] as VanzariAzi) != null)
                    {
                        VanzariAzi VanzariAziInstance = (VanzariAzi)Application.OpenForms["VanzariAzi"];
                        VanzariAziInstance.Close();
                    }
                }
            }
        }