private void btnLoadGlucoseData_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txFileName.Text)) { Business.Business bo = new Business.Business(); bo.LoadFromGlucoseData(txFileName.Text); txFileName.Text = ""; } }
public IHttpActionResult GetEmployees(int?employeeId = null) { Business.Business bus = new Business.Business(); try { var result = bus.GetEmployees(employeeId); return(Ok(result)); } catch (Exception ex) { return(BadRequest(string.Format("An error ahs ocurred: {0}", ex.Message))); } }
public static bool add_software(Business.Software s) { try { database.AddSoftware(s); } catch (Exception) { return false; } return true; }
public static bool add_characteristics(Business.Characteristic c) { try { database.AddCharacteristics(c); } catch (Exception) { return false; } return true; }
internal int addPost(Business.BaiNhanXet baiNhanXet) { ReviewFilmsBus bus = new ReviewFilmsBus(); return bus.addPost(baiNhanXet); }
private void CompletaAlbero(TreeNodeCollection nodes, Business.Entity.Categorie categorie) { var numProd = AnnunciCategorieCollection.GetCount("IdCategorie == " + categorie.Id); //Prendo la categoria con la lingua di default var cat = Business.Entity.Categorie.GetItem(Business.Entity.Categorie.KeyColumnsEnum.Id, categorie.Id); TreeNode node = new TreeNode(cat.Nome + " (" + numProd + ")", cat.Id.ToString()); if (NodiEspansi.Contains(cat.Id)) node.ExpandAll(); foreach (var item in CategorieCollection.GetList(wherePredicate: "IdPrec == @0", whereValues: new object[] { categorie.Id }, orderPredicate: "Posizione ASC")) CompletaAlbero(node.ChildNodes, item); nodes.Add(node); }
private void btnSplitData_Click(object sender, EventArgs e) { Business.Business bo = new Business.Business(); bo.Split(); }
private void CompletaAlbero(TreeNodeCollection nodes, Business.Entity.Guida guida) { var voce = Business.Entity.Guida.GetItem(Business.Entity.Guida.KeyColumnsEnum.Id, guida.Id); TreeNode node = new TreeNode(voce.Titolo, voce.Id.ToString()); if (NodiEspansi.Contains(voce.Id)) node.ExpandAll(); foreach (var item in GuidaCollection.GetList(wherePredicate: "IdPrec == @0", whereValues: new object[] { voce.Id }, orderPredicate: "Posizione ASC")) CompletaAlbero(node.ChildNodes, item); nodes.Add(node); }