Example #1
0
 partial void AARoomAPply(Foundation.NSObject sender)
 {
     try
     {
         int t;
         if (int.TryParse(AARoomFloor.StringValue, out t))
         {
             if (int.TryParse(AARoomRoom.StringValue, out t) & t > 0)
             {
                 if (int.TryParse(AARoomChairs.StringValue, out t) & t > 0)
                 {
                     Backendoptions.AddRoom(AARoomFloor.StringValue, AARoomRoom.StringValue, AARoomChairs.StringValue);
                     AAddRoomErr.StringValue = "Utworzono salę";
                 }
                 else
                 {
                     AAddRoomErr.StringValue = "Zła ILOŚĆ krzeseł";
                 }
             }
             else
             {
                 AAddRoomErr.StringValue = "Zły NUMER pokoju";
             }
         }
         else
         {
             AAddRoomErr.StringValue = "Zły NUMER piętra";
         }
     }
     catch (Exception)
     {
         AAddRoomErr.StringValue = "Wystąpił błąd";
     }
 }