GUI/SoundGraphDisplay.cs
branchMiniDisplay
changeset 437 38e7b78cf732
parent 436 e9aefd454d1e
child 438 f590956d3234
     1.1 --- a/GUI/SoundGraphDisplay.cs	Mon Feb 02 12:51:06 2015 +0100
     1.2 +++ b/GUI/SoundGraphDisplay.cs	Mon Feb 02 13:28:41 2015 +0100
     1.3 @@ -59,8 +59,8 @@
     1.4                  client.Start();*/
     1.5              }
     1.6  
     1.7 -            //Try loading SoundGraph iMON Disaply DLL
     1.8 -            iServer = new SoundGraph.Server(@"\\.\pipe\sga-receiver", @"\\.\pipe\sga-sender");
     1.9 +            //Start our SoundGraph server
    1.10 +            iServer = new SoundGraph.Server(@"\\.\pipe\sga-inbound", @"\\.\pipe\sga-outbound");
    1.11              iServer.Start();
    1.12              //iServer.SendMessage("init:");
    1.13          }
    1.14 @@ -103,6 +103,7 @@
    1.15              foreach (SensorFrontView icon in list)
    1.16                  icon.Dispose();
    1.17  
    1.18 +            Quit();
    1.19              iServer.Stop();
    1.20  
    1.21          }
    1.22 @@ -193,6 +194,11 @@
    1.23              iServer.SendMessage("set-vfd-text:" + aUpperLine);
    1.24          }
    1.25  
    1.26 +        public void Quit()
    1.27 +        {
    1.28 +            iServer.SendMessage("quit:");
    1.29 +        }
    1.30 +
    1.31          /*
    1.32          public bool IsMainIconEnabled
    1.33          {
    1.34 @@ -207,13 +213,6 @@
    1.35              }
    1.36          }*/
    1.37  
    1.38 -        /*
    1.39 -        public bool IsDllLoaded
    1.40 -        {
    1.41 -            get { return iSoundGraphDll!=IntPtr.Zero; }
    1.42 -        }
    1.43 -         */
    1.44 -
    1.45  
    1.46      }
    1.47  }