Example #1
0
        private void Step2ZigFile_VptSessionClass_OnActivateStrComplete(int nTransactionID, int nAbilityCode, byte bSuccess, string pszOutputs, int nUserPassBack)
        {
            vptSessionClass.OnActivateStrComplete -= Step2ZigFile_VptSessionClass_OnActivateStrComplete;

            Log("\tAPI On Activate Str Complete - nTransactionID:[" + nTransactionID + "], nAbilityCode:[" + nAbilityCode + "], bSuccess:[" + bSuccess + "], " +
                "pszOutputs:[" + pszOutputs + "], nUserPassBack:[" + nUserPassBack + "]");

            if (bSuccess == 0)
            {
                Log("ZIG retrieval failed - try again");
                errorLabel.Text = "ZIG retrieval failed - try again";
                this.BackColor  = Color.MistyRose;
            }
            else
            {
                Log("ZIG file retrieved.  Unzipping and parsing");
                UnzipAndParseSig();
                ParseNewSigFile();

                //then, we can go and get the signals from the DMPS
                TelnetGetDMPSSignals sigFinder = new TelnetGetDMPSSignals();
                sigFinder.OnLog      += SigFinder_OnLog;;
                sigFinder.OnComplete += SigFinder_OnComplete;
                sigFinder.StartGetDMPSSignals(this.DMPSIPAddress);
            }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TelnetGetDMPSSignals sig = new TelnetGetDMPSSignals();

            sig.OnLog      += Sig_OnLog;
            sig.OnComplete += Sig_OnComplete;

            sig.StartGetDMPSSignals("10.6.36.220");
        }