using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace NX_Installation { public partial class Disclaimer : Form { public Disclaimer(string filename) { InitializeComponent(); FileName = filename; } private string FileName { set; get; } private void btnDisclaimer_Click(object sender, EventArgs e) { Logfile log = new Logfile(FileName); log.Info("Disclaimer was read"); this.Close(); } } }