Ejemplo n.º 1
0
        private void HandleONTConfigured(object sender, ONTEventArgs e)
        {
            Settings.Default.LastEnteredSLID = ontInterface.SLID;
            Settings.Default.Save();

            _asyncOutputBufferSpecial += "\r\nSLID configured successfully!!!\r\n";
            _asyncSlidWritten          = true;
        }
Ejemplo n.º 2
0
        private void HandleTelnetData(object sender, ONTEventArgs e)
        {
            if (e.Type == ONTEventArgs.ConnectionEventType.Write)
            {
                return;
            }

            _asyncOutputBuffer = e.Message;
        }
Ejemplo n.º 3
0
        private void HandleTelnetDataEvent(object sender, ONTEventArgs e)
        {
            if (e.Message != null)
            {
                if (e.Type == ConnectionEventType.Read)
                {
                    foreach (String line in e.Message.Split('\n'))
                    {
                        ReadBuffer = line;

                        foreach (String expected in responseActions.Keys)
                        {
                            if ((expected == line) || (line.StartsWith(expected)))
                            {
                                responseActions[expected].Callback.DynamicInvoke(MyTelnetConnection, responseActions[expected].Response);
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 4
0
 private void HandleONTDisconnected(object sender, ONTEventArgs e)
 {
     _asyncOutputBufferSpecial += "\r\n*** Connection Lost ***\r\n";
 }
Ejemplo n.º 5
0
 private void HandleONTErrorMessage(object sender, ONTEventArgs e)
 {
     _asyncOutputBufferSpecial += "\r\nThe ONT is reporting an Error!\r\n";
     _asyncFormShowRequired     = toolStripMenuItem2.Checked;
 }
Ejemplo n.º 6
0
 private void HandleONTInvalidated(object sender, ONTEventArgs e)
 {
     _asyncOutputBufferSpecial += "\r\nSLID format is incorrect or over-length!\r\n";
     _asyncFormShowRequired     = toolStripMenuItem2.Checked;
 }
Ejemplo n.º 7
0
 private void HandleONTConnected(object sender, ONTEventArgs e)
 {
     _asyncOutputBufferSpecial += "\r\n*** Connection Established ***\r\n";
     _asyncFormShowRequired     = toolStripMenuItem2.Checked;
 }