private void QuitServerButton_Click(object p_Sender, EventArgs p_EvArgs) { if (m_ServerController.GetVeriteqOPCServer()) { m_ServerController.DisconnectDatabase(); } m_ServerController.Disconnect(); m_ServerController.CloseView(); }
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); }
public static void RefreshModuleFiles() { try { var client = GetClient(); if (client != null) { _client.Connect(); _client.FetchModules(); _client.Disconnect(); } } catch (Exception error) { Framework.EventBus.Publish(error); } }
private void QuitServerButton_Click(object sender, EventArgs eventArgs) { _serverController.Disconnect(); _serverController.CloseView(); }