Beispiel #1
0
        private void Btn_edit_Click(object sender, EventArgs e)
        {
            string location  = Txt_location_edit.Text;
            string site_name = Txt_site_name_edit.Text;

            string construction_site_name = Cmb_constructions.SelectedItem.ToString();

            if (Btn_boolean_used_edit.Checked == true)
            {
                Boolean used = true;
                api.updateConstruction(location, site_name, used, construction_site_name, api.getAllConstructions());
            }
            else
            {
                Boolean used = false;
                api.updateConstruction(location, site_name, used, construction_site_name, api.getAllConstructions());
            }

            Display();
        }