Ejemplo n.º 1
0
    public void AddSummary(GridViewSummary s)
    {
        if (this.ContainsSummary(s))
        {
            throw new Exception("Summary already exists in this group.");
        }

        if (!s.Validate())
        {
            throw new Exception("Invalid summary.");
        }

        ///s._group = this;
        s.SetGroup(this);
        this.mSummaries.Add(s);
    }
Ejemplo n.º 2
0
    public void AddSummary(GridViewSummary s)
    {
        if (this.ContainsSummary(s))
        {
            throw new Exception("Detalle ya existe en el grupo");
        }

        if (!s.Validate())
        {
            throw new Exception("Detale invalido");
        }

        ///s._group = this;
        s.SetGroup(this);
        this.mSummaries.Add(s);
    }
Ejemplo n.º 3
0
    public void AddSummary( GridViewSummary s)
    {
        if (this.ContainsSummary(s))
        {
            throw new Exception("Summary already exists in this group.");
        }

        if (!s.Validate())
        {
            throw new Exception("Invalid summary.");
        }

        ///s._group = this;
        s.SetGroup(this);
        this.mSummaries.Add(s);
    }