Example #1
0
        public static void UseOperation2 <TInput, TOutput>(
            OperDelegate <TInput, TOutput> operDelegate, TInput input1, TInput input2)
        {
            TOutput output = operDelegate(input1, input2);

            Console.WriteLine(string.Format("{0} {1} {2} = {3}",
                                            input1, operDelegate.Method.Name, input2, output));
        }
Example #2
0
    public whatif_products_oper()
    {
        PAGENAME      = "whatif_products_oper.aspx";
        featureHelper = new OperDelegate();

        int value = 2;

        helperProduct = new ProductDelegatePage(value);

        fieldsNonEditable    = new bool[featureHelper.FIELDS.Length];
        fieldsNonEditable[1] = true;
        fieldsNonEditable[3] = true;
        fieldsNonEditable[4] = true;
    }
    protected void SetupDefRoutingWarning(int prodid)
    {
        string userDatabase = GetDirectory() + userDir + DbPage.MAIN_USER_DATABASE;

        if (OperDelegate.DuplicateOperNamesOrNumbers(userDatabase, prodid))
        {
            lblWarnDefRouting.Text    = DbUse.DUPLICATE_OPER_WARNING;
            lblWarnDefRouting.Visible = true;
        }
        else
        {
            lblWarnDefRouting.Text    = "";
            lblWarnDefRouting.Visible = false;
        }
    }