Exemple #1
0
        private void btnImport_Click(object sender, EventArgs e)
        {
            S2API      api      = new S2API("http://64.129.189.200/goforms/nbapi", "admin", "admin");
            S2Importer importer = new S2Importer(api);

            importer.ImportLevels();
        }
Exemple #2
0
        private void ImportLevelsFromS2Click(object sender, EventArgs e)
        {
            var api = new S2API(S2APIUrl, S2APIUser, S2APIPassword, false);

            var importer = new S2Importer(api);

            importer.ImportLevels();
        }
Exemple #3
0
        void ImportS2Levels()
        {
            S2API      api   = new S2API(_s2URI, _s2RSMAccount, _s2RSMPassword);
            S2Importer imp   = new S2Importer(api);
            int        count = 0;

            try
            {
                count = imp.ImportLevels();
            }
            catch (Exception e)
            {
                WriteToEventLogError("Error importing levels from S2: " + e.ToString());
            }

            if (count > 0)
            {
                WriteToEventLog(string.Format("Imported {0} levels from S2 hardware at {1}.", count, _s2URI));
            }
        }