public override bool CanDoDelete() { bool canDelete = true; if (IsEdit() && DeviceName.EndsWith("SAMP0")) { canDelete = false; } return(canDelete); }