void ReleaseDesignerOutlets() { if (Camera != null) { Camera.Dispose(); Camera = null; } if (LocationAlways != null) { LocationAlways.Dispose(); LocationAlways = null; } if (LocationInUse != null) { LocationInUse.Dispose(); LocationInUse = null; } if (Photos != null) { Photos.Dispose(); Photos = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); Photos.SetCommand(ViewModel.Photos.RequestPermissionCommand); Camera.SetCommand(ViewModel.Camera.RequestPermissionCommand); LocationInUse.SetCommand(ViewModel.LocationInUse.RequestPermissionCommand); LocationAlways.SetCommand(ViewModel.LocationAlways.RequestPermissionCommand); }
private async Task CheckAll() { await Photos.CheckStatus(); await Camera.CheckStatus(); await Storage.CheckStatus(); await LocationInUse.CheckStatus(); await LocationAlways.CheckStatus(); }
/// <summary> /// Must be only used to check new table's number (just added to a location) /// </summary> /// <param name="inTableNumber"></param> private void pCheckForInvalidTableNumber(TableInfo inTable) { int tableNumber = inTable.Number; if ((tableNumber < _MIN_TABLE_NUMBER) || (tableNumber > _MAX_TABLE_NUMBER)) { LocationInUse.ReArrangeTableNumbers(); inTable.Number = LocationInUse.NextTableNumber(); inTable.Name = (inTable.Shape == TableShape.Rectangle) ? string.Format(@"S{0}", inTable.Number) : string.Format(@"R{0}", inTable.Number); pShowErrorMsg(@"An invalid table number was found in the DB. The table numbers have been re-assigned"); } }
/// <summary> /// /// </summary> /// <param name="inTableNamer"></param> /// <param name="inTable"></param> /// <returns></returns> private bool pCheckForDuplicateTableName(string inTableName, TableInfo inTable) { return(LocationInUse.SearchForDuplicateTableName(inTableName, inTable)); }
/// <summary> /// /// </summary> /// <param name="inTableNumber"></param> /// <returns></returns> private bool pCheckForDuplicateTableNumber(int inTableNumber, TableInfo inTable) { return(LocationInUse.SearchForDuplicateTableNumber(inTableNumber, inTable)); }