Exemplo n.º 1
0
        public ViewEstimate()
        {
            _EVM = new EstimateInvoiceViewModel();
            var data = App.Current.Properties["ViewEstimate"];

            this.DataContext = _EVM;
            InitializeComponent();

            textBlock16.Text = _EVM.EstimateDate.ToString();
            EstimateDate     = textBlock16;

            textBlock2.Text = _EVM.EstimateNo;
            EstimateNo      = textBlock2;

            textBlock31.Text = _EVM.TotalTax.ToString();
            TotalAmount      = textBlock31;

            textBlock33.Text = "";
            DiscountAmount   = textBlock33;

            textBlock37.Text = "";
            TotalItem        = textBlock37;

            textBlock40.Text = _EVM.TotalItemQty.ToString();
            TotalQty         = textBlock40;

            textBlock43.Text = _EVM.TotalPrice.ToString();
            TotalAmount      = textBlock43;
            //DataContext = this;
        }
Exemplo n.º 2
0
 public Estimate()
 {
     InitializeComponent();
     _EstimateInvoiceViewModel = new EstimateInvoiceViewModel();
     this.DataContext          = _EstimateInvoiceViewModel;
 }