Exemple #1
0
 /// <summary>
 /// Start Plex
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void StartPlex_Click(object sender, EventArgs e)
 {
     //start it
     if (_plexService != null)
     {
         try
         {
             _plexService.Start();
         }
         catch
         {
             Disconnect();
         }
     }
 }
        private void StartPlex()
        {
            //Try and connect to the WCF service and call its start method
            try
            {
                if (_plexService == null)
                {
                    Connect();
                }

                if (_plexService != null)
                {
                    _plexService.Start();
                    Disconnect();
                }
            }
            catch { }
        }