Exemplo n.º 1
0
 public void RemoveWin(WinBase win)
 {
     SubWinList?.Remove(win);
     if (win is MarkPoint)
     {
         MarkPoints.Remove(win as MarkPoint);
     }
     else if (win is CheckWinBase)
     {
         Components.Remove(win as CheckWinBase);
     }
     win.OnDeleteFromBoard();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 删除元件
 /// </summary>
 /// <param name="win"></param>
 public void RemoveWin(WinBase win)
 {
     SubWinList?.Remove(win);
     if (win is MarkPoint)
     {
         AllMarkPoints.Remove(win as MarkPoint);
     }
     else if (win is SubBoard)
     {
         SubBoards.Remove(win as SubBoard);
         if (win.ID < SubBoards.Count)//id乱
         {
             ResetAllSubBoardId();
         }
     }
     else
     {
         Components.Remove(win as CheckWinBase);
     }
     win.OnDeleteFromBoard();
 }