private void button1_Click(object sender, EventArgs e) { OpenFileDialog FD = new OpenFileDialog(); FD.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory; FD.Title = "Onde está o ficheiro XML?"; FD.Filter = "XML files (*.xml)|*.xml"; if (FD.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string fileToOpen = FD.FileName; PATA.Properties.Settings.Default.xmlPath = FD.FileName; PATA.Properties.Settings.Default.Save(); xmlPath = PATA.Properties.Settings.Default.xmlPath; } ListaDiagnosticos l = new ListaDiagnosticos(); l.ShowDialog(); this.Close(); }
private void btn_gerarListaResultados_Click(object sender, EventArgs e) { ListaDiagnosticos l = new ListaDiagnosticos(); l.ShowDialog(); }