public async Task help() { BLimp mybl = new BLimp(); //Client a = new BE.Client { name = "harry", mail = "*****@*****.**", telephone = "0584494104", town = "ירושלים", address = "בן יהודה 7 ירושלים ", ID = 1 }; //Client b = new BE.Client { name = "ado", mail = "*****@*****.**", telephone = "0584494104", town = "ירושלים", address = "הטורים 128 ירושלים", ID = 2 }; //Client c = new BE.Client { name = "banane", mail = "*****@*****.**", telephone = "0584494104", town = "ירושלים", address = "כנפי נשרים 3 ירושלים ", ID = 3 }; //Client d = new BE.Client { name = "banane", mail = "*****@*****.**", telephone = "0584494104", town = "ירושלים", address = "שלום יהודה 6 תלפיות ירושלים", ID = 4 }; //DALimp mydal = new DALimp(); //await mydal.setLocation(a); //await mydal.setLocation(b); //await mydal.setLocation(c); //await mydal.setLocation(d); //await mybl.AddClient(a); //await mybl.AddClient(b); //await mybl.AddClient(c); //await mybl.AddClient(d); //on rajoute a la liste des psuhpin tout les push pin //List<Pushpin> pushpins = new List<Pushpin>(); //foreach (var client in mybl.GetAllClients()) //{ // Pushpin pin = new Pushpin { Location = client.location, Background = new SolidColorBrush(Colors.Yellow) }; // pushpins.Add(pin); //} ////on les rentre dans la carte //foreach (var pin in pushpins) //{ // this.myMap.Children.Add(pin); //} // } }
static void Main(string[] args) { BLimp MyBL = new BLimp();// what's the problem char choice; do { choice = PLConsole.Menu(); switch (choice) { case 'R': PLConsole.AddGuestRequest(); break; case 'H': PLConsole.AddHostingUnit(); break; case 'S': PLConsole.ChangeStatusOfOrder(); break; case 'O': PLConsole.CreateOrder(); break; case 'E': break; default: Console.WriteLine("The command is unknown. Please try again"); break; } } while (choice != 'e'); }
public MainWindow() { using (var db = new DALContext()) { InitializeComponent(); BLimp mybl = new BLimp(); DALimp mydal = new DALimp(); //mydal.AddDeliveryMen(new DeliveryMen(1567, "sa", "fzeyd@kzrjh", "0658311966")); //mydal.Assignation(new Distribution(1), new DeliveryMen(1567)); // mydal.UpdateDeliveryMen2(new DeliveryMen(12345, "MALKI34", "fzeyd@kzrjh", "0658311966")); //Client a = new BE.Client { name = "harry", mail = "*****@*****.**", telephone = "0584494104", address = "3 villa fleurie", ID = 12 }; // Client b = new BE.Client { name = "ado", mail = "*****@*****.**", telephone = "0584494104", address = "3 villa fleurie", ID = 12 }; // Address a = new Address(); // Client c = new BE.Client { name = "banane", mail = "*****@*****.**", telephone = "0584494104", address = a, ID = 12 }; // int cvgv = 78; // // mybl.AddClient(c); // int step1 = 7; // int step2 = 89; // int step3 = 12; // int step4 = 23; // List<Client> mylist = mybl.GetAllClients().ToList<Client>(); // int a13 = 26; // Distribution b1 = new Distribution(78, new DateTime(2020, 09, 18), true); //// mybl.AddDistribution(b1); // mybl.Assignation2(c, new Distribution(1)); // // foreach (var item in mydal.GetAllCountry()) // // { // // Console.WriteLine(item.city); // // } // } mydal.distdone(); } }
public void Execute(object parameter) { ScannedProduct s = (ScannedProduct)parameter; BLimp bl = new BLimp(); bl.delete_ScannedProduct(s); VM.worker.RunWorkerAsync(); }
public void SaveProduct(Product product, Shop shop) { string parms = new BLimp().TranslateHEtoEN(product.GetParms()); product.NutritionalValues = new BLimp().GetProductIdNutrition(parms); shop.AddProduct(product); new BLimp().add_Product(product); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string img = new BLimp().getImageUrlByProductId((int)value); if (img != null && img != "") { return(img); } return("pack://application:,,,/Images/defaultImg.png"); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string cat = new BLimp().getCategoryStringByProductId((int)value); if (cat != null && cat != "") { return("היא " + cat); } return("חסרה במערכת. "); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { string name = new BLimp().getNameByProductId((int)value); if (name != "" && name != null) { return(new BLimp().getNameByProductId((int)value)); } return("חסר"); }
internal void SaveChanges(Product product) { try { product.ClearPropertyChanged(); BLimp bl = new BLimp(); string parms = bl.TranslateHEtoEN(product.GetParms()); product.NutritionalValues = bl.GetProductIdNutrition(parms); product.NutritinosValuesDictonary = bl.GetProductNutritionByID(product.NutritionalValues); bl.update_Product(product); product.RestorePropertyChanged(); } catch (Exception) { throw new Exception("לא ניתן לבצע שינויים כרגע"); } }
public void SaveChanges(Shop shop) { if (shop.Address.BuildingNumber == 0) { throw new Exception("מספר הבית לא יכול להיות 0"); } if (shop.ShopName.Length < 4) { throw new Exception("שם החנות חייב להכיל לפחות 3 תווים"); } if (!VerifyStringAs("phone", shop.Phone)) { throw new Exception("מספר טלפון לא תקין"); } if (!VerifyStringAs("website", shop.Website)) { throw new Exception("כתובת אתר לא תקינה"); } if (!VerifyStringAs("facebook", shop.Facebook)) { throw new Exception("כתובת פייסבוק לא תקינה"); } if (!VerifyStringAs("instagram", shop.Instagram)) { throw new Exception("כתובת אינסטגרם לא תקינה"); } if (!new BLimp().VerifyAddress(shop.Address)) { throw new Exception("הכתובת שהזנת לא קיימת"); } try { BLimp bl = new BLimp(); bl.update_Address(shop.Address); bl.update_Shop(shop); } catch (Exception) { throw new Exception("לא ניתן לשמור כעת את השינויים"); } }
public async Task help() { BLimp mybl = new BLimp(); //Client a = new BE.Client { name = "harry", mail = "*****@*****.**", telephone = "0584494104", address = "Rue du Lt Jean Vigneux, Saint Gratien, France", ID = 1 }; //Client b = new BE.Client { name = "ado", mail = "*****@*****.**", telephone = "0584494104", address = "52 rue jean collet meyzieu", ID = 2 }; //Client c = new BE.Client { name = "banane", mail = "*****@*****.**", telephone = "0584494104", address = "35 rue chemin des pommiers meyzieu ", ID = 3 }; Address a = new Address("שלום יהודה 6 תלפיות ירושלים", "ירושלים"); Client d = new Client { name = "banane", mail = "*****@*****.**", telephone = "0584494104", address = a, ID = 4 }; DALimp mydal = new DALimp(); //await mydal.setLocation(a); //await mydal.setLocation(b); await mydal.setLocation(d); //await mybl.AddClient(a); //await mybl.AddClient(b); await mybl.AddClient(d); //on rajoute a la liste des psuhpin tout les push pin List <Pushpin> pushpins = new List <Pushpin>(); foreach (var client in mybl.GetAllClients()) { Pushpin pin = new Pushpin { Location = client.location, Background = new SolidColorBrush(Colors.Yellow) }; pushpins.Add(pin); } //on les rentre dans la carte foreach (var pin in pushpins) { this.myMap.Children.Add(pin); } // } }
public MenuModel() { this.blimp = new BLimp(); }
public AddShopUserControlM() { BlImp = new BLimp(); }
public DelModel() { this.blimp = new BLimp(); }
public ClientModel() { this.blimp = new BLimp(); }
public AddReviewUserControlM() { BlImp = new BLimp(); }
public KmeansModel(KmeansViewModel kmeansVM) { this.KmeansVM = kmeansVM; blimp = new BLimp(); }
public MapModel() { this.blimp = new BLimp(); }
public StatModel() { this.blimp = new BLimp(); }
public DistributionModel() { this.blimp = new BLimp(); }
public RecommendedShoppingUserControlM() { bl = new BLimp(); }