public void Export() { SQLForm sql = new SQLForm(); if (sql.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string sqltext = sql.SQLText; ExecuteTasks(sqltext); } }