public FrmIntrebareGrila(IntrebareGrila intrebare, int idtest)
 {
     InitializeComponent();
     Intrebare = intrebare;
     IdTest = idtest;
     comboRaspunsCorect.Text = "1";
 }
        /// <summary>
        /// Returneaza Intrebarea de pe forma, formata din datele 
        /// introduse de utilizator
        /// </summary>
        /// <returns></returns>
        private IntrebareGrila GetIntrebareGrila()
        {
            int id, raspunsCorect;
            if (Intrebare == null)
                id = ResourcesHandler.Instance.GetNextAvailableIntrebareGrilaId();
            else
                id = Intrebare.Id;
            int.TryParse(comboRaspunsCorect.Text, out raspunsCorect);
            float puncte;
            float.TryParse(txtPuncte.Text, out puncte);
            if (txtIntrebare.Text.Length == 0 || txtRaspuns1.Text.Length == 0 || txtRaspuns2.Text.Length == 0 ||
                txtRaspuns3.Text.Length == 0 || txtRaspuns4.Text.Length == 0 || raspunsCorect == 0)
            {
                Messages.ShowMessageBox(Messages.VALUES_UNSPECIFIED, "error");
                return null;
            }

            IntrebareGrila intrebare = new IntrebareGrila(id, IdTest, txtIntrebare.Text, raspunsCorect,
                txtRaspuns1.Text, txtRaspuns2.Text, txtRaspuns3.Text, txtRaspuns4.Text, puncte);
            return intrebare;
        }