步步为盈
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

using BBWY.Client.Models;
using BBWY.Client.Views.SelectShop;
using GalaSoft.MvvmLight.Command;
using System;
using System.Windows.Input;
namespace BBWY.Client.ViewModels
{
public partial class OrderListViewModel
{
private int sdGroupButtonIndex;
private Shop sdGroupSelectedShop;
public int SDGroupButtonIndex { get => sdGroupButtonIndex; set { Set(ref sdGroupButtonIndex, value); } }
public ICommand SetSDButtinIndexCommand { get; set; }
public ICommand SDGroupSelectedShopChangedCommand { get; set; }
public Shop SdGroupSelectedShop { get => sdGroupSelectedShop; set { Set(ref sdGroupSelectedShop, value); } }
private void SDGroupInit()
{
SetSDButtinIndexCommand = new RelayCommand<int>(SetSDButtinIndex);
SDGroupSelectedShopChangedCommand = new RelayCommand<OnShopChangedEventArgs>(SDGroupSelectedShopChanged);
}
private void SetSDButtinIndex(int index)
{
SDGroupButtonIndex = index;
}
private void SDGroupSelectedShopChanged(OnShopChangedEventArgs args)
{
this.SdGroupSelectedShop = args.SelectedShop;
}
}
}