internal frmLaborTimes(Components.LaborTimes Timings, Common.WriteEntry WriteLog, Common.ExceptionHandler Handler) { InitializeComponent(); this.ExHandler = Handler; this.LogEntry = WriteLog; _LaborTimes = Timings; desc_Clips.Text = Components.LaborTimes.Descriptions.Clips; desc_Holes.Text = Components.LaborTimes.Descriptions.Holes; desc_Welds.Text = Components.LaborTimes.Descriptions.Welds; desc_Cuts.Text = Components.LaborTimes.Descriptions.Cuts; desc_Copes.Text = Components.LaborTimes.Descriptions.Copes; desc_ShearPlates.Text = Components.LaborTimes.Descriptions.ShearPlates; desc_CapPlates.Text = Components.LaborTimes.Descriptions.CapPlates; desc_BasePlates.Text = Components.LaborTimes.Descriptions.BasePlates; desc_Handrails.Text = Components.LaborTimes.Descriptions.Handrails; desc_Guardrails.Text = Components.LaborTimes.Descriptions.Guardrails; desc_Stiffners.Text = Components.LaborTimes.Descriptions.Stiffners; desc_Gusset.Text = Components.LaborTimes.Descriptions.Gusset; desc_HandWelds.Text = Components.LaborTimes.Descriptions.HWelds; desc_LessThan50.Text = Components.LaborTimes.Descriptions.MatHandleLess50lbs; desc_LessThan10.Text = Components.LaborTimes.Descriptions.MatHandleLess10ft; desc_Other.Text = Components.LaborTimes.Descriptions.MatHandleOther; txtClips.Text = _LaborTimes.Clips.ToString(); txtHoles.Text = _LaborTimes.Holes.ToString(); txtWelds.Text = _LaborTimes.Welds.ToString(); txtCuts.Text = _LaborTimes.Cuts.ToString(); txtCopes.Text = _LaborTimes.Copes.ToString(); txtShearPlates.Text = _LaborTimes.ShearPlates.ToString(); txtCapPlates.Text = _LaborTimes.CapPlates.ToString(); txtBasePlates.Text = _LaborTimes.BasePlates.ToString(); txtHandrails.Text = _LaborTimes.Handrails.ToString(); txtGuardrails.Text = _LaborTimes.Guardrails.ToString(); txtStiffners.Text = _LaborTimes.Stiffners.ToString(); txtGusset.Text = _LaborTimes.Gusset.ToString(); txtHandWelds.Text = _LaborTimes.HWelds.ToString(); txtMatHandle50lbs.Text = _LaborTimes.MatHandleLess50lbs.ToString(); txtMatHandle10ft.Text = _LaborTimes.MatHandleLess10ft.ToString(); txtMatHandleOther.Text = _LaborTimes.MatHandleOther.ToString(); }
public frmUserWorksheet(Forms.frmSplashScreen InitScreen) { InitializeComponent(); lblError.Text = ""; SplashScreen = InitScreen; LogTarget = Common.WriteLog; ExceptionTarget = this.Exceptions; ChildClosed = this.RefreshGrid; SetupDetails = new Components.ProjectSetup(); LaborTimings = new Components.LaborTimes(LogTarget, ExceptionTarget); LaborTimings.LoadFromFile(); GridViewSource = new Data.UIGridViewDataTable(); Parts = new Dictionary <int, Common.Part>(); dataGridView1.ReadOnly = true; _HighlightStyle = new DataGridViewCellStyle(); _HighlightStyle.BackColor = System.Drawing.Color.LightSteelBlue; _HighlightRows = new List <Int32>(); }
public LaborTimes(Common.WriteEntry WriteLog, Common.ExceptionHandler Handler) { this.ExHandler = Handler; this.LogEntry = WriteLog; }