private void boardTableTreeView_BoardSelected(object sender, BoardTableTreeViewItemSelectedEventArgs e)
 {
     if (patrolPatternPanel.Controls.Count > 0)
     {
         PatrolPatternEditControl selectedPatternControl
             = (PatrolPatternEditControl)patrolPatternPanel.Controls[0];
         selectedPatternControl.AddBoard((BoardInfo)e.SelectedBoard);
         //if (!selectedPatternControl.CurrentPattern.TargetBoards.Contains((BoardInfo)e.SelectedBoard))
         //{
         //    selectedPatternControl.CurrentPattern.TargetBoards.Add((BoardInfo)e.SelectedBoard);
         //}
         //selectedPatternControl.AddBoard((BoardInfo)e.SelectedBoard);
     }
 }
 private void OnBoardSelected(BoardTableTreeViewItemSelectedEventArgs e)
 {
     if (BoardSelected != null)
     {
         BoardSelected(this, e);
     }
     System.Threading.Thread.Sleep(HideInterval);
     Hide();
 }