using GalaSoft.MvvmLight.Command; using System.Windows.Input; namespace BBWY.Client.ViewModels { public partial class OrderListViewModel { private int sdGroupButtonIndex; public int SDGroupButtonIndex { get => sdGroupButtonIndex; set { Set(ref sdGroupButtonIndex, value); }} public ICommand SetSDButtinIndexCommand { get; set; } private void SDGroupInit() { SetSDButtinIndexCommand = new RelayCommand(SetSDButtinIndex); } private void SetSDButtinIndex(int index) { SDGroupButtonIndex = index; } } }