sl@17: using System; sl@17: using System.Windows.Forms; sl@17: sl@17: namespace SharpDisplayManager sl@17: { sl@17: /// sl@17: /// Implement our display service. sl@17: /// This class is instantiated anew whenever a client send a request. sl@17: /// sl@17: class DisplayServer : IDisplayService sl@17: { sl@17: //From IDisplayService sl@17: public void SetText(int aLineIndex, string aText) sl@17: { sl@17: if (aLineIndex == 0) sl@17: { sl@17: Program.iMainForm.marqueeLabelTop.Text = aText; sl@17: } sl@17: else if (aLineIndex == 1) sl@17: { sl@17: Program.iMainForm.marqueeLabelBottom.Text = aText; sl@17: } sl@17: } sl@17: sl@17: } sl@17: sl@17: }