Пример #1
0
 public QSS()
 {
     InitializeComponent();
     if (((App)Application.Current).vm is QSSVM)
     {
         vm = ((App)Application.Current).vm as QSSVM;
     }
     ;
     Loaded += QSS_Loaded;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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;
 }
Пример #4
0
 public GetNote()
 {
     InitializeComponent();
     vm = ((App)Application.Current).vm as QSSVM;;
 }
Пример #5
0
 public GetNote(QSSVM vm)
 {
     InitializeComponent();
     this.vm = vm;
 }