/// <summary> /// Wait untill thread that recieves data from netwotk /// connection (ThreadDataReciever) terminates /// than call method _kernelTerminal.DeleteExistingStock /// /// Call from /// Eventhandler OnDeleteInstrument /// </summary> public void DeleteInstrument() { IsAlive = false; while (!IsDead && _threadDataReciever.IsAlive) { Thread.Sleep(1); } _kernelTerminal.DeleteExistingStock(ControlMarket.StockNum, _tickerName); }