예제 #1
0
        public Gui()
        {
            InitializeComponent();

            Icon = Common.Resources.Icons.WSCT;

            _pluginConfiguration = SerializedObject <PluginConfiguration> .LoadFromXml(@"Config.EMVExplorer.xml");

            _tlvDictionary = SerializedObject <TlvDictionary> .LoadFromXml(@"Dictionary.EMVTag.xml");

            _certificationAuthorityRepository = _pluginConfiguration.terminalConfiguration.CertificationAuthorityRepository;

            _detailedLogs = new DetailedLogs(this);
            _detailedLogs.TlvDictionary = _tlvDictionary;

            guiPSEName.DataSource    = _pluginConfiguration.terminalConfiguration.TerminalCapabilities.SupportedPses;
            guiPSEName.DisplayMember = "name";

            guiAC1Type.DataSource   = Enum.GetValues(typeof(CryptogramType));
            guiAC1Type.SelectedItem = CryptogramType.TC;

            _emvApplications = new List <EmvApplication>();
        }
예제 #2
0
 /// <summary>
 /// Initializes a new <see cref="TerminalConfiguration"/> instance.
 /// </summary>
 public TerminalConfiguration()
 {
     TerminalCapabilities             = new TerminalCapabilities();
     CertificationAuthorityRepository = new CertificationAuthorityRepository();
 }