Exemplo n.º 1
0
        public void CreateView(CrudPurposes purpose, AppMessage message = null)
        {
            if (purpose == CrudPurposes.Error)
            {
                Error.Visible = true;
                MV.Visible    = false;
            }
            else
            {
                Error.Visible = false;
                MV.Visible    = true;
                MV.SetControls(_id, _controls);
                MV.SetPurpose(purpose);
            }

            if (purpose == CrudPurposes.Edit)
            {
                MV.SetValues(message);
            }
        }