Beispiel #1
0
        //  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); });
        }
Beispiel #2
0
        public AccountList()
        {
            InitializeComponent();
            lvaccount.SizeChanged       += LV_SizeChanged;
            account_tranObj.SizeChanged += LV_SizeChanged1;
            AccountVM vm = new AccountVM();

            this.DataContext = vm;
        }
Beispiel #3
0
 public SelectCustom(AccountVM vm)
 {
     InitializeComponent();
 }