Пример #1
0
 public static MyBL getMyBL()
 {
     if (instance == null)
     {
         instance = new MyBL();
     }
     return(instance);
 }
Пример #2
0
        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;
        }
Пример #3
0
 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;
 }
Пример #4
0
 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;
     }
 }
Пример #5
0
        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;
        }
Пример #6
0
 public static IBL getBL()
 {
     return(MyBL.getMyBL());
 }