private void Save_to_DataBase() { Save_to_DB_Form stdb = new Save_to_DB_Form(); stdb.ShowDialog(); if (stdb.DialogResult == DialogResult.OK) { string xml_data = XML_Worker.Save_to_xml_string(typeof(Skeleton), current_skelet_loaded); DBWorker dbw = new DBWorker(); dbw.saveXml_to_database(stdb.textBox1.Text, stdb.textBox2.Text, xml_data); } }