コード例 #1
0
 private void QuitServerButton_Click(object p_Sender, EventArgs p_EvArgs)
 {
     if (m_ServerController.GetVeriteqOPCServer())
     {
         m_ServerController.DisconnectDatabase();
     }
     m_ServerController.Disconnect();
     m_ServerController.CloseView();
 }
コード例 #2
0
        public static IServerController GetClient()
        {
            if (_client == null)
            {
                _client = Framework.Network.CreateClient();

                if (_client != null)
                {
                    _client.OnDataReceived += ModulesReceived;
                    _client.Connect();
                    _client.FetchModules();
                    _client.Disconnect();
                }
            }

            return(_client);
        }
コード例 #3
0
 public static void RefreshModuleFiles()
 {
     try
     {
         var client = GetClient();
         if (client != null)
         {
             _client.Connect();
             _client.FetchModules();
             _client.Disconnect();
         }
     }
     catch (Exception error)
     {
         Framework.EventBus.Publish(error);
     }
 }
コード例 #4
0
 private void QuitServerButton_Click(object sender, EventArgs eventArgs)
 {
     _serverController.Disconnect();
     _serverController.CloseView();
 }