public static void SetShowPrices(Boolean value)
        {
            var row = UserOptions.GetCurrent();

            row.ShowPrices = value;
            DB.Update(row);
        }
 public static void Init()
 {
     if (GetCurrent() == null)
     {
         var row = new UserOptions
         {
             RowId         = Guid.NewGuid(),
             DeviceId      = Guid.NewGuid(),
             DeviceName    = U.GetDeviceName(),
             BusinessRowId = default(Guid),
         };
         DB.Insert(row);
     }
 }
 public static Boolean GetShowPrices()
 {
     return(UserOptions.GetCurrent().ShowPrices);
 }
 public static Guid GetDeviceId()
 {
     return(UserOptions.GetCurrent().DeviceId);
 }
 public static Guid GetUserRowId()
 {
     return(UserOptions.GetCurrent().UserRowId);
 }
 public static String GetPassword()
 {
     return(UserOptions.GetCurrent().Password ?? "");
 }
 public static String GetUser()
 {
     return(UserOptions.GetCurrent().Username ?? "");
 }