Пример #1
0
 /// <summary>
 /// 
 /// </summary>
 public UIEstimateDisplay()
 {
     InitializeComponent();
     subTotal = 0;
     taxTotal = 0;
     est = Common.estimate;            
     this.LayoutRoot.DataContext = new DBService.Estimate();  
 }
Пример #2
0
 /// <summary>
 /// 
 /// </summary>
 public UIEstimate()
 {
     InitializeComponent();
     subTotal = 0;
     taxTotal = 0;
     opMod =(int)Common.opmode;
     est = Common.estimate;
     if (App.Current.IsRunningOutOfBrowser)
     {
         dynamic wscript = AutomationFactory.CreateObject("WScript.Network");
         pcName = (string)wscript.ComputerName;
     }
     this.LayoutRoot.DataContext = new DBService.Estimate();            
     db.UpdateEstimateCompleted += new EventHandler<UpdateEstimateCompletedEventArgs>(db_UpdateEstimateCompleted);
     xmlFile = new XMLFile();
     this.BindingValidationError += new EventHandler<ValidationErrorEventArgs>(UIEstimate_BindingValidationError);            
 }