public Expand(Models.KhachHang kh) { InitializeComponent(); this.Icon = new BitmapImage(new Uri("Appico.ico", UriKind.RelativeOrAbsolute)); vm = new ViewModels.ExpandViewModel(kh); this.DataContext = vm; ComboboxColumn.ItemsSource = vm.CbbLQHData; ComboboxLoaiCuocGoi.ItemsSource = vm.CbbLoaiCuocGoiData; }
public MakeCall(Models.KhachHang kh) { InitializeComponent(); this.Icon = new BitmapImage(new Uri("Appico.ico", UriKind.RelativeOrAbsolute)); vm = new ViewModels.MakeCallViewModel(kh); this.DataContext = vm; // define the dialog buttons this.Buttons = new Button[] { this.CancelButton }; }