public QSS() { InitializeComponent(); if (((App)Application.Current).vm is QSSVM) { vm = ((App)Application.Current).vm as QSSVM; } ; Loaded += QSS_Loaded; }
public print(QSSVM vm) { InitializeComponent(); this.vm = vm; Duedate.Text = vm.Duedate; if (vm.activeCustomer == null) { CustomerName.Text = "test"; vm.store = "Haille"; } else { CustomerName.Text = vm.activeCustomer.FirstName + " " + vm.activeCustomer.LastName; } Store.Text = vm.store; Barcode.Text = vm.barcode; Name.Text = "By " + vm.Employeename; reason.Text = vm.reason; Note.Text = vm.Note; }
public print() { InitializeComponent(); if (((App)Application.Current).vm is QSSVM) { vm = ((App)Application.Current).vm as QSSVM; } ; Duedate.Text = vm.Duedate; if (vm.activeCustomer == null) { CustomerName.Text = "test"; vm.store = "Haille"; } else { CustomerName.Text = vm.activeCustomer.FirstName + " " + vm.activeCustomer.LastName; } Store.Text = vm.store; Barcode.Text = vm.barcode; Name.Text = vm.Employeename; reason.Text = vm.reason; }
public GetNote() { InitializeComponent(); vm = ((App)Application.Current).vm as QSSVM;; }
public GetNote(QSSVM vm) { InitializeComponent(); this.vm = vm; }