Beispiel #1
0
        private void init()
        {
            this.FursEndPoints = new ObservableCollection <Tuple <string, string> >();
            this.FursEndPoints.Add(new Tuple <string, string>("TEST / TEST (https://blagajne-test.fu.gov.si:9002/v1/cash_registers)", @"https://blagajne-test.fu.gov.si:9002/v1/cash_registers"));
            this.FursEndPoints.Add(new Tuple <string, string>("Produkcija / Production (https://blagajne.fu.gov.si:9003/v1/cash_registers)", @"https://blagajne.fu.gov.si:9003/v1/cash_registers"));
            this.FursEndPoints.Add(new Tuple <string, string>("Začasna Produkcija / Temporary production (https://blagajne.fu.gov.si:9009/v1/cash_registers)", @"https://blagajne.fu.gov.si:9009/v1/cash_registers"));

            Certificates cert = new Certificates();

            this.Certificates = new ObservableCollection <X509Certificate2>();
            foreach (var certificate in cert.GetAllFursCertificates())
            {
                this.Certificates.Add(certificate);
            }

            this.Timeouts = new ObservableCollection <string>();
            for (int i = 1; i < 11; i++)
            {
                this.Timeouts.Add(string.Format("{0} sec", i));
            }

            this.cbType.SelectedIndex         = 0;
            this.cbCertificates.SelectedIndex = 0;
            this.cbTimeout.SelectedIndex      = 1;
            this.showExample(this.btnEcho);
            this.showResults(null);
        }