public CPCC(Logs logWindow, string ip, string port, string myName, string myId, string networkController) { this.signalizationNetwork = new transportClient(ip, port); this.logs = logWindow; msgListener = new transportClient.NewMsgHandler(onNewMessage); signalizationNetwork.OnNewMessageRecived += msgListener; this.myName = myName; this.myId = myId; this.nc = networkController; sendMessage(myId + "@" + "CallControll"+"#"); Thread.Sleep(100); sendMessage(nc+"@CallControll#MyParams#"+myId+"#"); logs.addLog("Service started correctly", true, Constants.LOG_INFO); }
public MainWindow() { InitializeComponent(); log = new Logs(); client = new Client(this.chat, this.txtBlock, this); setChat(); string conf = ClientNode.App.partialPathToConfig; if (conf != null) { pathToConfig = @""+conf; client.readConfig(pathToConfig); startService(); } }