コード例 #1
0
 public AddSaleBillUserControl()
 {
     saleBillViewModel = new SaleBillViewModel();
     _saleBillBusiness = new SaleBillBusiness();
     InitializeComponent();
     InitializeData();
 }
コード例 #2
0
 /// <summary>
 /// List the methods needed for data initialization
 /// </summary>
 private void InitializeData()
 {
     _saleBillBusiness         = new SaleBillBusiness();
     saleBills                 = _saleBillBusiness.GetAll();
     DataContext               = saleBills;
     ListSaleBills.ItemsSource = saleBills;
 }
コード例 #3
0
 public EditSaleBillUserControl(SaleBill saleBill)
 {
     InitializeComponent();
     _saleBillBusiness      = new SaleBillBusiness();
     this.saleBillViewModel = new SaleBillViewModel(saleBill);
     this.DataContext       = saleBillViewModel;
     Load_DataGrid_SaleBillDetail();
 }