public Form1() { InitializeComponent(); try { //trying to load the initial configurations CurrentConfiguration = JsonConvert.DeserializeObject <PrinterConfiguration>(File.ReadAllText(ConfigFileName)); } catch (Exception ex) { MessageBox.Show(ex.Message); } }