private void BtnTask_Click(object sender, RoutedEventArgs e)
        {
            TaskDisplay dis = new TaskDisplay()
            {
                ShowInTaskbar = false,
                Owner         = this
            };

            dis.Show();
        }
 public MsgThread(TaskDisplay wnd)
 {
     this.wnd = wnd;
     uiHandleMessageDelegate = new UIHandleMessageDelegate(UIHandleMessage);
 }