コード例 #1
0
ファイル: TileRack.cs プロジェクト: jonathanyeung/ozwego
        public void RemoveTile(Grid tile)
        {
            var column = (int)tile.GetValue(Grid.ColumnProperty);
            var row = (int)tile.GetValue(Grid.RowProperty);

            int index = column + row*ColumnCount;

            _rackOccupency[index] = false;

            _theRack.Children.Remove(tile);
        }
コード例 #2
0
 public static bool GetShouldGoToIssue(Grid grid)
 {
     return (bool)grid.GetValue(NavigateToIssue);
 }
コード例 #3
0
 public static bool GetShouldGoToNotification(Grid grid)
 {
     return (bool) grid.GetValue(NavigateToNotification);
 }
コード例 #4
0
 public static bool GetShouldGoToActivity(Grid grid)
 {
     return (bool)grid.GetValue(NavigateToPR);
 }