public static int ComparaDupaNume(BComportamentAplicatie xElemLista1, BComportamentAplicatie xElemLista2) { if (xElemLista1 == null) { if (xElemLista2 == null) { return(0); } else { return(-1); } } else { if (xElemLista2 == null) { return(1); } else { return(xElemLista1.Valoare.CompareTo(xElemLista2.Valoare)); } } }
public static void SetAsBool(EnumComportamentAplicatie pComportamentAsociat, bool pSelectat) { BComportamentAplicatie.Add(pComportamentAsociat, Convert.ToString(pSelectat), null); }