//Listing all the Students private void listAllButton_Click(object sender, RoutedEventArgs e) { DisplayAll display = new DisplayAll(); //Generate DisplayAll Window display.displayDataGrid.DataContext = dataList; //Set the DataContext for the DataGrid display.Show(); //Show the Window }
public ActionResult DisplayAllRating() { DisplayAll da = new DisplayAll(); var temp = da.RestaurantsByRating(); List <WebRestaurant> listWR = new List <WebRestaurant>(); foreach (var item in temp) { listWR.Add(WebDataConversion.RestaurantToWeb(item)); } return(View(listWR)); }
protected override void GetCreateClientObjectScript(StringBuilder stb, string localVarName, string clientName) { base.GetCreateClientObjectScript(stb, localVarName, clientName); if (DisplayAll) { stb.AppendFormat("{0}.displayAll={1};\n", localVarName, DisplayAll.ToScript()); } if (DisplayItemCount != 0) { stb.AppendFormat("{0}.displayItemCount={1};\n", localVarName, DisplayItemCount.ToScript()); } }
public ActionResult Search(string SearchRest) { SearchRestaurants sr = new SearchRestaurants(); var temp = sr.FindRestaurants(SearchRest); var WebRestList = new List <WebRestaurant>(); DisplayAll da = new DisplayAll(); temp = da.RestaurantsByName(temp); foreach (var item in temp) { WebRestList.Add(WebDataConversion.RestaurantToWeb(item)); } if (WebRestList != null) { return(View(WebRestList)); } else { return(new HttpNotFoundResult()); } }
private void btn_CariUkuranBarang_Click(object sender, EventArgs e) { DisplayAll disp = new DisplayAll(Utils.ClassSelector.UKURAN_BARANG); disp.Show(); }
private void btn_CariSupplierBarang_Click(object sender, EventArgs e) { DisplayAll disp = new DisplayAll(Utils.ClassSelector.SUPPLIER); disp.Show(); }
private void btn_CariModelBarang_Click(object sender, EventArgs e) { DisplayAll disp = new DisplayAll(Utils.ClassSelector.MODEL_BARANG); disp.Show(); }
private void btn_CariJenisBarang_Click(object sender, EventArgs e) { DisplayAll disp = new DisplayAll(Utils.ClassSelector.JENIS_BARANG); disp.Show(); }
private void btn_CariWarnaBarang_Click(object sender, EventArgs e) { DisplayAll disp = new DisplayAll(Utils.ClassSelector.WARNA_BARANG); disp.Show(); }