public static MyBL getMyBL() { if (instance == null) { instance = new MyBL(); } return(instance); }
public AddGuestRequest() { InitializeComponent(); bl = MyBL.Instance; cbxArea.ItemsSource = Enum.GetNames(typeof(BE.Enums.Regions)); cbxHostingType.ItemsSource = Enum.GetValues(typeof(BE.Enums.HostingUnitType)); guestRequest = new GuestRequest(); NewRequestOfSameGuest(); DataContext = guestRequest; }
public AddHostingUnit() { InitializeComponent(); bl = MyBL.Instance; UnitButtom.Click += AddButton_Click; cbxArea.ItemsSource = Enum.GetValues(typeof(BE.Enums.Regions)); cbxUnitType.ItemsSource = Enum.GetValues(typeof(BE.Enums.HostingUnitType)); hostingUnit = new HostingUnit(); newOfSameHost(); DataContext = hostingUnit; }
public AddGuestRequest(GuestRequest request) { if (request != null) { InitializeComponent(); bl = MyBL.Instance; guestRequest = request; this.Title = "בקשת לקוח"; this.cbxArea.ItemsSource = Enum.GetNames(typeof(BE.Enums.Regions)); this.cbxHostingType.ItemsSource = Enum.GetNames(typeof(BE.Enums.HostingUnitType)); this.cbxArea.SelectedItem = request.Area; this.cbxHostingType.SelectedValue = request.Type; IsRequestStillEnable(); AddGuestButton.Content = "שמור"; AddGuestButton.Click += UpdateButton_Click; DataContext = guestRequest; } }
public AddHostingUnit(HostingUnit unit) { InitializeComponent(); bl = MyBL.Instance; hostingUnit = unit; UnitButtom.Content = "שמור"; UnitButtom.Click += UpdateButton_Click; this.cbxArea.ItemsSource = Enum.GetNames(typeof(BE.Enums.Regions)); this.cbxUnitType.ItemsSource = Enum.GetNames(typeof(BE.Enums.HostingUnitType)); tbxEmail.IsEnabled = false; cbxArea.IsEnabled = false; cbxUnitType.IsEnabled = false; tbxEmail.IsEnabled = false; tbxBankNum.IsEnabled = false; tbxBranchNum.IsEnabled = false; tbxaccountNum.IsEnabled = false; iDHostKey.IsEnabled = false; cbxArea.SelectedItem = hostingUnit.Area; DataContext = hostingUnit; }
public static IBL getBL() { return(MyBL.getMyBL()); }