private void ConfigSettings_Load(object sender, EventArgs e) { cs = new ConfigurationSettings(); cs = cf.LoadConfigSettings(); if (cs != null) { txtMachineKey.Text = cs.MachineID; } }