private void HandleONTConfigured(object sender, ONTEventArgs e) { Settings.Default.LastEnteredSLID = ontInterface.SLID; Settings.Default.Save(); _asyncOutputBufferSpecial += "\r\nSLID configured successfully!!!\r\n"; _asyncSlidWritten = true; }
private void HandleTelnetData(object sender, ONTEventArgs e) { if (e.Type == ONTEventArgs.ConnectionEventType.Write) { return; } _asyncOutputBuffer = e.Message; }
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); } } } } } }
private void HandleONTDisconnected(object sender, ONTEventArgs e) { _asyncOutputBufferSpecial += "\r\n*** Connection Lost ***\r\n"; }
private void HandleONTErrorMessage(object sender, ONTEventArgs e) { _asyncOutputBufferSpecial += "\r\nThe ONT is reporting an Error!\r\n"; _asyncFormShowRequired = toolStripMenuItem2.Checked; }
private void HandleONTInvalidated(object sender, ONTEventArgs e) { _asyncOutputBufferSpecial += "\r\nSLID format is incorrect or over-length!\r\n"; _asyncFormShowRequired = toolStripMenuItem2.Checked; }
private void HandleONTConnected(object sender, ONTEventArgs e) { _asyncOutputBufferSpecial += "\r\n*** Connection Established ***\r\n"; _asyncFormShowRequired = toolStripMenuItem2.Checked; }