private void setup_Load(object sender, EventArgs e) { if (CurrentForm != null) CurrentForm = null; CurrentForm = this; }
private void setup_Load(object sender, EventArgs e) { if (CurrentForm != null) { CurrentForm = null; } CurrentForm = this; }
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"]; } }