Example #1
0
        private void BillingPortalCtl_Load(object sender, EventArgs e)
        {
            LineItemsCtl lControl = new LineItemsCtl(JobHandler.Instance.CurrentJob.BillingObject.GetLineItems());

            lControl.Dock          = DockStyle.Fill;
            lControl.StatusUpdate += ChangeStatusText;

            pgAdditionalLineItems.Controls.Add(lControl);
            billingGrid.RegisterGroupBoxEvents();
            DataGridViewSetup.SetupDGV(billingGrid, EntityTypes.BillingItem);

            billingItems = Utility.CreateDictionary(JobHandler.Instance.CurrentJob.BillingObject.GetBillingItems());
            PopulateListBox();
            UpdateTotalTime();

            kryptonNavigator1.SelectedPage = pgTimeEntries;
        }
        private void ViewObjects_Load(object sender, EventArgs e)
        {
            propGrid.GetAcceptButton().Click      += SaveData;
            propGrid.GetAcceptButton().ToolTipText = "Save the object's properties to the database.";
            propGrid.GetClearButton().Visible      = false;
            if (typeOfData == EntityTypes.Survey)
            {
                propGrid.GetUploadFilesButton().Click    += UploadFiles;
                propGrid.GetDownloadFilesButton().Click  += DownloadFiles;
                propGrid.GetOpenJobButton().Click        += OpenJob;
                propGrid.GetUploadFilesButton().Visible   = true;
                propGrid.GetDownloadFilesButton().Visible = true;
                propGrid.GetOpenJobButton().Visible       = true;
            }

            dataGrid.RegisterGroupBoxEvents();
            DataGridViewSetup.SetupDGV(dataGrid, typeOfData);
            LoadData();
        }