public existNanny(BE.Nanny nanny1) { nanny = nanny1; InitializeComponent(); bl = BL.FactoryBL.getBL(); mainGrid.DataContext = nanny; }
/// <summary> /// build fun for class/window ,get parmeters to how to build the window /// </summary> /// <param name="n">num for choose option</param> public Results(int n) { InitializeComponent(); bl = new BL.BL_imp(); switch (n) { case 1: this.nannies_mothers.DataContext = bl.NannyList(); break; case 2: this.nannies_mothers.DataContext = bl.MotherList(); break; case 3: this.children.DataContext = bl.ChildList(); this.nannies_mothers.DataContext = bl.NannyList(); break; case 4: this.contracts.DataContext = bl.ContractList(); break; default: break; } }
public existMother(BE.Mother mom) { mother1 = mom; InitializeComponent(); bl = BL.FactoryBL.getBL(); mainGrid.DataContext = mother1; }
public newNanny() { InitializeComponent(); bl = BL.FactoryBL.getBL(); nny = new BE.Nanny(); this.mainGrid.DataContext = nny; }
public childDetails(BE.Child temp) { childTemp = temp; InitializeComponent(); bl = BL.FactoryBL.getBL(); mainGrid.DataContext = temp; }
/// <summary> /// build fun for class/window ,get parmeters to how to build the window /// </summary> /// <param name="mother">mother of child</param> /// <param name="num">num for choose the current option</param> /// <param name="id">id of nanny</param> public Results(Mother mother, int num, int id) { InitializeComponent(); bl = new BL.BL_imp(); temp_mom = mother; try { if (num == 1) { this.listNannies.DataContext = bl.properList(mother); } if (num == 0) { this.listNannies.DataContext = bl.Nannies_around(mother); } if (num == 2) { foreach (Contract item in bl.getNanny(id).MyContract) { new Contract_Menu(item).Show(); } } } catch (FormatException) { MessageBox.Show("בדוק את הקלט"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public newMom() { InitializeComponent(); bl = BL.FactoryBL.getBL(); mom = new BE.Mother(); this.mainGrid.DataContext = mom; }
public allMathers() { InitializeComponent(); bl = BL.FactoryBL.getBL(); Mather = bl.getAllMothers(); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Mather; }
public AddTester() { InitializeComponent(); tester = new BE.Tester(); this.gridAddTester.DataContext = tester; bl = BL.FactoryBL.getBL(); this.comboBox1.ItemsSource = Enum.GetValues(typeof(BE.gender)); }
public nanniesWithTamat() { InitializeComponent(); bl = BL.FactoryBL.getBL(); Nannes = bl.nanniesWithTamat(); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Nannes; }
public showContractDetails(BE.Contract contract1) { InitializeComponent(); bl = BL.FactoryBL.getBL(); contract = contract1; this.maingrid.DataContext = contract1; this.grid1.DataContext = contract1; }
public allNannes() { InitializeComponent(); bl = BL.FactoryBL.getBL(); Nannes = bl.getAllNannies(); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Nannes; }
public allContracts() { InitializeComponent(); bl = BL.FactoryBL.getBL(); Contract = bl.getAllContract(); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Contract; }
/// <summary> /// build fun for the class/window pf add a new nanny /// </summary> public Nanny_Menu() { errorMwsagges = new List <string>(); InitializeComponent(); bl = new BL.BL_imp(); nanny = new BE.Nanny(); this.update_nanny.IsEnabled = false; this.DataContext = nanny; }
public MainWindow() { InitializeComponent(); bl = BL.FactoryBL.getBL(); slider.ToolTip = new ToolTip(); slider.ToolTip = slider.Value; }
public searchNannySlider(BE.Mother mom) { InitializeComponent(); bl = BL.FactoryBL.getBL(); mathr = mom; slider.ToolTip = new ToolTip(); slider.ToolTip = slider.Value; }
public newChild() { InitializeComponent(); bl = BL.FactoryBL.getBL(); Child = new BE.Child(); grid1.DataContext = Child; grid2.DataContext = Child; grid3.DataContext = Child; }
public existChildOfMother(BE.Mother mom) { InitializeComponent(); bl = BL.FactoryBL.getBL(); mom2 = mom; childOfMOM = bl.getChildOfMother(mom); childDataGrid.DataContext = null; childDataGrid.DataContext = childOfMOM; }
public allChildren() { InitializeComponent(); bl = BL.FactoryBL.getBL(); childrn = bl.getAllChild(); childDataGrid.DataContext = null; childDataGrid.DataContext = childrn; }
public existChildOfNanny(BE.Nanny nanny1) { InitializeComponent(); bl = BL.FactoryBL.getBL(); nanny = nanny1; childOfNanny = bl.getChildOfNanni(nanny); childDataGrid.DataContext = null; childDataGrid.DataContext = childOfNanny; }
public childrenWithoutNannis() { InitializeComponent(); bl = BL.FactoryBL.getBL(); childrn = bl.childrenWithoutNannis(); childDataGrid.DataContext = null; childDataGrid.DataContext = childrn; }
/// <summary> /// build function of the class/window for update a contract /// </summary> /// <param name="mycontract">this contract will dispaly for updating</param> public Contract_Menu(Contract mycontract) { InitializeComponent(); this.sign_mom.IsEnabled = false; signing_a_contractCheckBox.IsEnabled = false; this.checking.IsEnabled = false; bl = new BL.BL_imp(); contract = new Contract(); contract = mycontract; this.DataContext = contract; }
/// <summary> /// build function for the class/window to know which get a string which contatins info what to do /// </summary> /// <param name="str">information</param> public ID(string str) { if (str == "contract") { label_contract.Visibility = Visibility.Visible; label.Visibility = Visibility.Collapsed; } InitializeComponent(); bl = new BL.BL_imp(); mystr = str; }
public matchNannies(BE.Mother mom, int distance) { InitializeComponent(); bl = BL.FactoryBL.getBL(); temp = new List <BE.Nanny>(); momTemp = mom; temp = bl.getMatchNanniesList(mom); Nanny = bl.closeDistanceNannies(mom, distance, temp); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Nanny; }
static void Main(string[] args) { BE.Guest Aaron = new BE.Guest { FirstName = "Aaron", LastName = "Russell", ID = 325647896, Email = "*****@*****.**" }; BE.GuestRequest GR1 = new BE.GuestRequest { GuestRequestKey = 10000010, Totalcomission = 0, GuestPersonalDetails = Aaron, Status = BE.DemandStatusTypes.Open, RegistrationDate = new DateTime(2020, 4, 10), EntryDate = new DateTime(2020, 5, 15), ReleaseDate = new DateTime(2020, 6, 20), Areas = new List <BE.AreaTypes>() { BE.AreaTypes.North, BE.AreaTypes.Center }, SunbAreas = new List <String>() { "Ranana", "Modiin" }, Type = BE.HostingUnitTypes.HotelRoom, Adults = 3, Children = 4, Pool = BE.RequirementTypes.No, HotTub = BE.RequirementTypes.Yes, Garden = BE.RequirementTypes.Yes, ChildrenAttractions = BE.RequirementTypes.Yes }; BE.Host H = new BE.Host(); BE.HostingUnit HU = new BE.HostingUnit(); BE.Order O = new BE.Order(); BL.BL_imp bl = new BL.BL_imp(); bl.AddGuestRequest(GR1); bl.UpdateGuestRequest(BE.DemandStatusTypes.Expired, 10000010); Console.WriteLine("aaaaaaaaaaa working ok"); Console.ReadKey(); }
public closeDistanceNannies(string adrresAddress, int slider) { InitializeComponent(); bl = BL.FactoryBL.getBL(); BE.Mother temp = new BE.Mother(); temp.AreaOfLookFor = adrresAddress; Nanny = new List <BE.Nanny>(); Nanny = bl.closeDistanceNannies(temp, slider); motherDataGrid.DataContext = null; motherDataGrid.DataContext = Nanny; }
public Contract(BE.Nanny nanny1, BE.Mother mom) { InitializeComponent(); startWorkDateDatePicker.SelectedDate = DateTime.Today; endWorkDateDatePicker.SelectedDate = DateTime.Today; bl = BL.FactoryBL.getBL(); contract = new BE.Contract(); Label1.Content = mom.Id; idOfNannyLabel.Content = nanny1.Id; contract.IdOfMother = mom.Id; contract.IdOfNanny = nanny1.Id; this.grid1.DataContext = contract; }
public showNannyDetails(string idNanny, BE.Mother mm) { InitializeComponent(); mom = mm; bl = BL.FactoryBL.getBL(); newnan = bl.searchNanny(idNanny); this.mainGrid.DataContext = newnan; this.grid29.DataContext = newnan; this.grid28.DataContext = newnan; this.grid2.DataContext = newnan; this.grid26.DataContext = newnan; this.grid7.DataContext = newnan; this.grid27.DataContext = newnan; this.grid35.DataContext = newnan; }
/// <summary> /// ctor for updates nanny /// </summary> /// <param name="update_nanny">nanny we send to update</param> public Nanny_Menu(BE.Nanny update_nanny) { errorMwsagges = new List <string>(); InitializeComponent(); bl = new BL.BL_imp(); this.add_nanny.IsEnabled = false; nanny = update_nanny; this.FloorUpDown.Value = nanny.floor; this.max_age.Value = nanny.max_age; this.min_age.Value = nanny.min_age; this.YearsUpDown.Value = (int)nanny.years_of_experience; this.max_count.Value = nanny.max_of_children; this.idTextBox.IsEnabled = false; this.firstNameTextBox.IsEnabled = false; this.lastNameTextBox.IsEnabled = false; this.date_of_birthDatePicker.IsEnabled = false; this.DataContext = nanny; }
/// <summary> /// build function of the class/window for add a contract /// </summary> /// <param name="temp_nanny">nanny in the contract</param> /// <param name="temp_mother">nother in the contract</param> public Contract_Menu(Nanny temp_nanny, Mother temp_mother) { InitializeComponent(); bl = new BL.BL_imp(); signing_a_contractCheckBox.IsEnabled = false; this.sign_nanny.IsEnabled = false; this.cancel_nanny.IsEnabled = false; contract = new Contract(); nanny = temp_nanny; mother = temp_mother; contract.name_nanny = nanny.firstName; contract.name_mother = mother.firstName; contract.MotherAddress = mother.address; this.name_mother.Text = mother.firstName; contract.id_mother = mother.id; contract.id_nanny = nanny.id; contract.MotherAddress = mother.address; contract.per_hour = nanny.hourly_rate; contract.per_month = nanny.monthly_rate; contract.NannyAddres = nanny.address; this.DataContext = contract; }