Пример #1
0
        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();
        }
Пример #2
0
 private void ConsumerClosed(object sender, EventArgs e)
 {
     m_consumerControl = null;
 }