Beispiel #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);
    }
Beispiel #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);
    }
Beispiel #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);
    }