public InsertInvoice(PAGE_STATE currentState, ViewModels.InsertInvoiceViewModel insertVm) { InitializeComponent(); DataContext = insertVm; _undoViewModel = new ViewModels.InsertInvoiceViewModel(insertVm); PageStateUILogic(currentState); }
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(); } }
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(); }
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(); }