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

            PageStateUILogic(currentState);
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
    }
Exemplo n.º 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();
    }
Exemplo n.º 5
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();
    }
Exemplo n.º 6
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();
    }