/// <summary> /// /// </summary> public UIEstimateDisplay() { InitializeComponent(); subTotal = 0; taxTotal = 0; est = Common.estimate; this.LayoutRoot.DataContext = new DBService.Estimate(); }
/// <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); }