public ErrorInfoControl(DatabaseCon con, error_code error)
        {
            InitializeComponent();

            this.labelID.Content              = $"{error.error_code_id}";
            this.labelCode.Content            = $"{error.error_code1}";
            this.labelMneumonic.Content       = error.error_code_mneumonic;
            this.labelNarrative.Content       = error.narrative;
            this.labelDefaultSeverity.Content = error.severity.description;

            var apps = con.getFromBitmask <application>(error.application_ids);

            this.labelApplications.Content = string.Join(",", apps.Select(a => a.description));

            var devices = con.getFromBitmask <device_type>(error.device_ids);

            this.labelDevices.Content = string.Join(",", devices.Select(d => d.description));
        }