void check_config() { FileStream xml_config; if (!File.Exists("settings.xml")) { setup popup_form = new setup(); popup_form.ShowDialog(); } else { xml_config = File.OpenRead("settings.xml"); DataSet set = new DataSet(); set.ReadXml(xml_config); Settings.table = set.Tables["settings"]; } }