/// <summary>
 /// Set the card pop-up location
 /// </summary>
 /// <param name="side"></param>
 /// <param name="mainWindowTop"></param>
 /// <param name="mainWindowLeft"></param>
 /// <param name="mainWindowWidth"></param>
 internal void SetCardPopupPosition(CardPopupSide side, double mainWindowTop, double mainWindowLeft, double mainWindowWidth)
 {
     CardsMyLibrary.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
     CardsMySideboard.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
     CardsOpponent.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
     OpponentCardsWindow.SetCardsPopupPosition(side);
 }
Ejemplo n.º 2
0
        //public void Init(MainWindowVM vm)
        //{
        //    DataContext = vm;
        //    //CardsMyLibrary.SetDataContext(vm.InMatchState.MyLibrary);
        //    //CardsMySideboard.SetDataContext(vm.InMatchState.MySideboard);
        //    //CardsOpponent.SetDataContext(vm.InMatchState.OpponentCardsSeen);
        //    //FullDeck.SetDataContext(vm.InMatchState.FullDeck);
        //}

        internal void SetCardPopupPosition(ForceCardPopupSideEnum side, int mainWindowTop, int mainWindowLeft, int mainWindowWidth)
        {
            CardsMyLibrary.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
            CardsMySideboard.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
            //CardsOpponent.SetCardPopupPosition(side, mainWindowTop, mainWindowLeft, mainWindowWidth);
            windowOpponentCardsSeen.SetCardsPopupPosition(side);
        }