Пример #1
0
 internal frmProjectSetup(Components.ProjectSetup SetupDetails)//, Delegate UpdateDetails)
 {
     InitializeComponent();
     _SetupDetails       = SetupDetails;
     txtCustomer.Text    = _SetupDetails.Customer;
     txtEstimateNum.Text = _SetupDetails.EstimateNum;
     txtProject.Text     = _SetupDetails.Project;
     txtDate.Text        = _SetupDetails.ProjectDate.ToString("MM/dd/yyyy");
     txtSqFt.Text        = _SetupDetails.SquareFt;
 }
Пример #2
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>();
        }