private void updateApmokejimas_Click(object sender, EventArgs e)
        {
            try
            {
                Apmokejimas ap     = new Apmokejimas();
                DateTime    apData = DateTime.Parse(updateApmokejimasApData.Text);
                ap.apmok_data = apData.Date;
                ap.apmok_Id   = int.Parse(updateApmokejimasApmokNr.Text);

                apmokRep.UpdateApmokejimas(ap);

                updateApmokejimasApData.Clear();
                updateApmokejimasApmokNr.Clear();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            MessageBox.Show("Succesfully updated");
            getApmokejimasDisplay();
        }