Beispiel #1
0
        public InsertInvoice(PAGE_STATE currentState, ViewModels.InsertInvoiceViewModel insertVm)
        {
            InitializeComponent();
            DataContext    = insertVm;
            _undoViewModel = new ViewModels.InsertInvoiceViewModel(insertVm);

            PageStateUILogic(currentState);
        }
Beispiel #2
0
 private void PageStateUILogic(PAGE_STATE currentState)
 {
     _currentState = currentState;
     if (currentState == PAGE_STATE.NEW)
     {
         _buttonStackPanel.Visibility = System.Windows.Visibility.Visible;
         _updateButton.Visibility     = System.Windows.Visibility.Collapsed;
         _createButton.Visibility     = System.Windows.Visibility.Visible;
         _editButton.Visibility       = System.Windows.Visibility.Collapsed;
         ToggleUIControlSwitch();
     }
 }
Beispiel #3
0
    public void NextPage()
    {
        if (mListCnt >= mCardList.Count)
        {
            return;
        }

        IsFirstPack = false;
        mPageState  = PAGE_STATE.NEXT;
        mListCnt++;
//		InitWithCard(mCardList[mListCnt-1], null);
        mCardInfo = mCardList[mListCnt - 1];
        transform.GetComponent <PlayerCardAnimation>().NextPage();
    }
Beispiel #4
0
    public void PrevPage()
    {
        if (mListCnt <= 1)
        {
            return;
        }

        IsFirstPack = false;
        mPageState  = PAGE_STATE.PREV;
        mListCnt--;
//		InitWithCard(mCardList[mListCnt-1], null);
        mCardInfo = mCardList[mListCnt - 1];
        transform.GetComponent <PlayerCardAnimation>().PrevPage();
    }
    public void PrevPage()
    {
        if(mListCnt <= 1) return;

        IsFirstPack = false;
        mPageState = PAGE_STATE.PREV;
        mListCnt--;
        //		InitWithCard(mCardList[mListCnt-1], null);
        mCardInfo = mCardList[mListCnt-1];
        transform.GetComponent<PlayerCardAnimation>().PrevPage();
    }
    public void NextPage()
    {
        if(mListCnt >= mCardList.Count) return;

        IsFirstPack = false;
        mPageState = PAGE_STATE.NEXT;
        mListCnt++;
        //		InitWithCard(mCardList[mListCnt-1], null);
        mCardInfo = mCardList[mListCnt-1];
        transform.GetComponent<PlayerCardAnimation>().NextPage();
    }