public void Load() { if (File.Exists("channels.json")) { var ser = new Serializer<ChannelList>(); channelList = ser.JSON2Serialize("channels.json", true); channelList.Sort(); } if (File.Exists("settings.json")) { var ser = new Serializer<Settings>(); settings = ser.JSON2Serialize("settings.json", true); } else settings = new Settings(); }