} // MPrintColor static MPrintColor Create(Color color, String name) { MPrintColor pc = new MPrintColor(Env.GetContext(), 0, null); pc.SetName(name); pc.SetColor(color); pc.Save(); return(pc); } // create
static public MPrintColor Get(Ctx ctx, int AD_PrintColor_ID) { // if (AD_PrintColor_ID == 0) // return new MPrintColor (ctx, 0); //Info int key = AD_PrintColor_ID; MPrintColor pc = (MPrintColor)_colors[key]; if (pc == null) { pc = new MPrintColor(ctx, AD_PrintColor_ID, null); _colors.Add(key, pc); } return(pc); } // get