/// <summary> /// Shows the find form /// </summary> /// <param name="view">The view control</param> /// <param name="where">Which location should be highlighted by default</param> /// <param name="type">If this is a new search or just search again</param> public static void Find(RequestTrafficView view, FindLocation where, FindType type) { lock (_lock) { if (_instance == null) { _instance = new ImmediateFinder(); } if (type == FindType.NewFind) { _instance._comboLocation.SelectedIndex = (int)where; _instance._view = view; _instance.Show(); } else { if (_instance._matches.Count > 0) { _instance.FindAgain(); } else { _instance.Show(); } } } }
public ActionResult UserRecords() { Entity db = new Entity(); var record = Repository.GetRecordsReverse(db); List <UserRecordsModel> rvm = new List <UserRecordsModel>(); foreach (var item in record) { if (PCustomer.Id == item.UserId) { string currentLoc; FindLocation find = new FindLocation(); currentLoc = find.returnLocation(item.LocatId); UserRecordsModel rec = new UserRecordsModel(); rec.Total = item.Total; rec.DateT = item.DateT; rec.AmountP = item.AmountP; rec.PizzaType = item.PizzaType; rec.Size = item.Size; rec.Crust = item.Crust; rec.LocationAdd = currentLoc; rvm.Add(rec); } } return(View(rvm)); }