Exemplo n.º 1
0
        internal frmNewBeam(Common.ExceptionHandler ExceptionTarget, Common.ChildFormClosed FormClosed, Components.BeamInfo Beam)
        {
            InitializeComponent();
            this.ExHandler   = ExceptionTarget;
            this.ChildClosed = FormClosed;
            this._Beam       = Beam;

            _StiffnerFormA = new frmStiffner();
            _StiffnerFormB = new frmStiffner();
            _BearingFormA  = new frmBearingPlate();
            _BearingFormB  = new frmBearingPlate();
            _UserFormA     = new frmUserDefined();
            _UserFormB     = new frmUserDefined();
            _ExtrasForm    = new frmExtras();

            //All of this block is just to get the lookup codes from the database for the dropdown.
            Common.dbConnection.Open();
            List <string> _DropdownOptions = new List <string>();
            SQLiteCommand command          = new SQLiteCommand("select lookup from SteelLookup");

            command.Connection = Common.dbConnection;
            SQLiteDataReader reader = command.ExecuteReader();

            while (reader.Read())
            {
                _DropdownOptions.Add(reader.GetString(0));
            }
            Common.dbConnection.Close();
            cmbBeamType.DataSource = _DropdownOptions;
            cmbBeamType.Text       = "W813";
        }
Exemplo n.º 2
0
 internal frmNewHandrail(Common.ExceptionHandler ExceptionTarget, Common.ChildFormClosed FormClosed, Components.HandrailInfo Handrail)
 {
     InitializeComponent();
     this.ExHandler   = ExceptionTarget;
     this.ChildClosed = FormClosed;
     this._Handrail   = Handrail;
 }
Exemplo n.º 3
0
 internal frmNewStairs(Common.ExceptionHandler ExceptionTarget, Common.ChildFormClosed FormClosed, Components.StairsInfo Stairs)
 {
     InitializeComponent();
     this.ExHandler   = ExceptionTarget;
     this.ChildClosed = FormClosed;
     this._Stairs     = Stairs;
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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>();
        }
Exemplo n.º 6
0
        internal frmNewColumn(Common.ExceptionHandler ExceptionTarget, Common.ChildFormClosed FormClosed, Components.ColumnInfo Column)
        {
            InitializeComponent();
            this.ExHandler   = ExceptionTarget;
            this.ChildClosed = FormClosed;
            this._Column     = Column;

            //All of this block is just to get the lookup codes from the database for the dropdown.
            Common.dbConnection.Open();
            List <string> _DropdownOptions = new List <string>();
            SQLiteCommand command          = new SQLiteCommand("select lookup from SteelLookup");

            command.Connection = Common.dbConnection;
            SQLiteDataReader reader = command.ExecuteReader();

            while (reader.Read())
            {
                _DropdownOptions.Add(reader.GetString(0));
            }
            Common.dbConnection.Close();
            cmbBeamType.DataSource = _DropdownOptions;
            cmbBeamType.Text       = "W813";
        }
Exemplo n.º 7
0
 public LaborTimes(Common.WriteEntry WriteLog, Common.ExceptionHandler Handler)
 {
     this.ExHandler = Handler;
     this.LogEntry  = WriteLog;
 }