private void MImageSearch_Click(object sender, EventArgs e) { if (mClean) { ClearLocation(); mClean = false; } else { if (dialog != null) { dialog.Dismiss(); } if (dialogInstructions != null) { dialogInstructions.Dismiss(); } if (dialogEnter != null) { dialogEnter.Dismiss(); } if (mMarkerCenter == null || mCenterPosition == null) { return; } mParkinglots.Clear(); mPosition = 0; SearchParkinglots(); mClean = true; } }
private void MImageReload_Click(object sender, EventArgs e) { if (dialog != null) { dialog.Dismiss(); } if (dialogEnter != null) { dialogEnter.Dismiss(); } if (mMap != null && mParkinglots != null) { mMap.Clear(); mParkinglots.Clear(); SearchParkinglots(); } }