private static void GridSizeChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            CardBoard cardBoard = sender as CardBoard;

            cardBoard.Init();

            cardBoard.Edit();
        }
        private static void OnCardsChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            CardBoard cardBoard = sender as CardBoard;
            var       cards     = (IList <Card>)args.NewValue;

            cardBoard.Update(cards);

            cardBoard.Edit();
        }