internal SKSAuthorizationDialog(int key_handle, PassphraseFormat format, Grouping grouping, AppUsage app_usage, int zero_or_retriesleft) { this.key_handle = key_handle; this.retry_warning = zero_or_retriesleft != 0; this.retriesleft = zero_or_retriesleft; this.pin_format = format; if (app_usage == AppUsage.SIGNATURE && (grouping == Grouping.UNIQUE || grouping == Grouping.SIGNATURE_PLUS_STANDARD)) { show_picture = true; add_on_dialog_header = " - SIGNATURE"; picture_resource = "sks.signsymb.gif"; picture_tooltip_text = "Signature operation requiring a specific PIN"; } if (app_usage == AppUsage.AUTHENTICATION && grouping == Grouping.UNIQUE) { show_picture = true; add_on_dialog_header = " - AUTHENTICATION"; picture_resource = "sks.idcard.gif"; picture_tooltip_text = "Authentication operation requiring a specific PIN"; } if (app_usage == AppUsage.ENCRYPTION && grouping == Grouping.UNIQUE) { show_picture = true; add_on_dialog_header = " - ENCRYPTION"; picture_resource = "sks.encrypt.gif"; picture_tooltip_text = "Encryption operation requiring a specific PIN"; } pin_format = format; InitializeComponent(); }