GUI/SoundGraphDisplay.cs
changeset 395 df649224ba4d
parent 394 60a1e2b6ed71
child 396 21a9e2325617
     1.1 --- a/GUI/SoundGraphDisplay.cs	Sat Feb 09 17:18:09 2013 +0100
     1.2 +++ b/GUI/SoundGraphDisplay.cs	Fri Apr 12 02:30:14 2013 +0200
     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  }