Exemple #1
0
 public static GridActionCommandFactory <T> Localize <T>(this GridActionCommandFactory <T> c, bool hasEdit = true, bool hasDelete = true) where T : class
 {
     if (hasEdit)
     {
         c.Edit().Text("ویرایش".Localize()).UpdateText("ذخیره".Localize()).CancelText("لغو".Localize());
     }
     if (hasDelete)
     {
         c.Destroy().Text("حذف".Localize());
     }
     return(c);
 }
 public static GridDestroyActionCommandBuilder EmsgDelete <T>(this GridActionCommandFactory <T> factory) where T : class
 {
     return(factory.Destroy().HtmlAttributes(new { title = Resources.GridLocalization.Delete }));
 }