public MainWindow() { InitializeComponent(); client = new Client(this.chat, this.txtBlock, this); setChat(); string conf = ClientNode.App.partialPathToConfig; if (conf != null) { pathToConfig = @""+conf; client.readConfig(pathToConfig); } }