// public ICommand SelectedItemCommand { get; set; } public SelectCustomVM(AccountVM vm) { this.vm = vm; CustomerLists = new ObservableCollection <CUSTOMER>(CustomerDao.Instance().getAll()); FindCommand = new RelayCommand <FrameworkElement>((p) => { return(p != null ? true : false); }, (p) => { Find(p); }); OKCommand = new RelayCommand <CUSTOMER>((p) => true, (p) => { ShowEditForm(p); }); CancelCommand = new RelayCommand <Window>((p) => true, (p) => { p.Close(); }); // SelectedItemCommand = new RelayCommand<CUSTOMER>((p) => { return p != null ? true : false; }, (p) => { SelectedItem(p); }); }
public AccountList() { InitializeComponent(); lvaccount.SizeChanged += LV_SizeChanged; account_tranObj.SizeChanged += LV_SizeChanged1; AccountVM vm = new AccountVM(); this.DataContext = vm; }
public SelectCustom(AccountVM vm) { InitializeComponent(); }