AddonVirtual.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Data;
6 
7 namespace Sage.ES.S50.Addons.Virtual
8 {
9  //internal abstract class AddonVirtual : IAddonVirtual
10  //{
11  // #region Members
12  // private DataTable _addonsDataTable;
13  // #endregion
14 
15  // internal static class metadata
16  // {
17  // internal static readonly string Nombre = "NOMBRE";
18  // internal static readonly string Revision = "REVISION";
19  // internal static readonly string Nombre2 = "NOMBRE2";
20  // internal static readonly string Activo = "ACTIVO";
21  // internal static readonly string Libreria = "LIBRERIA";
22  // internal static readonly string Clase = "CLASE";
23  // internal static readonly string Visible = "VISIBLE";
24  // internal static readonly string Instalado = "INSTALADO";
25  // internal static readonly string Tipo = "TIPO";
26  // internal static readonly string Solucion = "SOLUCION";
27  // internal static readonly string SmallProf = "SMALLPROF";
28  // }
29 
30  // #region Properties
31  // public string Nombre { get; set; }
32  // public int Revision { get; set; }
33  // public string Nombre2 { get; set; }
34  // public bool Activo { get; set; }
35  // public string Libreria { get; set; }
36  // public string Clase { get; set; }
37  // public bool Visible { get; set; }
38  // public bool Instalado { get; set; }
39  // public int Tipo { get; set; }
40  // public int Solucion { get; set; }
41  // public int SmallProf { get; set; }
42  // #endregion Properties
43 
44  // #region Constructor
45  // internal AddonVirtual(ref DataTable dataTable)
46  // {
47  // _addonsDataTable = dataTable ?? throw new NullReferenceException($"dataTable vacĂ­o, se esperaba un dataTable en Addon Virtual {Nombre2}");
48  // }
49  // #endregion Constructor
50 
51  // #region Private Methods
52  // public void AddRow()
53  // {
54  // if (Condition())
55  // {
56  // DataRow row = _addonsDataTable.NewRow();
57  // row[metadata.Nombre] = Nombre;
58  // row[metadata.Revision] = Revision;
59  // row[metadata.Nombre2] = Nombre2;
60  // row[metadata.Activo] = Activo;
61  // row[metadata.Libreria] = Libreria;
62  // row[metadata.Clase] = Clase;
63  // row[metadata.Visible] = Visible;
64  // row[metadata.Instalado] = Instalado;
65  // row[metadata.Tipo] = Tipo;
66  // row[metadata.Solucion] = Solucion;
67  // row[metadata.SmallProf] = SmallProf;
68  // _addonsDataTable.Rows.Add(row);
69  // }
70  // }
71 
72  // protected virtual bool Condition()
73  // {
74  // return true;
75  // }
76  // #endregion Private Methods
77 
78  //}
79 
80 }