private void ThreadEntry() { m_consumerControl = new GuiConsumerControl(); Window window = new Window { Title = "Alex Malcolm - Veracity - GUI Consumer", Content = m_consumerControl }; window.SizeToContent = SizeToContent.WidthAndHeight; window.Closed += new EventHandler(ConsumerClosed); window.Show(); System.Windows.Threading.Dispatcher.Run(); }
private void ConsumerClosed(object sender, EventArgs e) { m_consumerControl = null; }