private void xrLabel4_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            Product currentProduct = (Product)GetCurrentColumnValue("Product");

            if (currentProduct != null)
            {
                (sender as XRLabel).Text = EnumDisplayTextHelper.GetDisplayText(currentProduct.Category).ToUpper();
            }
        }
Exemple #2
0
        private void xrLabel3_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            EmployeeTaskStatus currentStatus = (EmployeeTaskStatus)this.GetCurrentColumnValue("Status");

            (sender as XRLabel).Text = "STATUS: " + EnumDisplayTextHelper.GetDisplayText(currentStatus).ToUpper();
        }