public MainWindow()
 {
     InitializeComponent();
     bl = MyBL.Instance;
     CreateDemoEntites();
     LoadListsOnWindow();
 }
 public GuestUC()
 {
     InitializeComponent();
     bL = MyBL.Instance;
     tbxEnterMail.PreviewMouseDown += TbxEnterMail_PreviewMouseDown;
     tbxEnterMail.LostFocus        += TbxEnterMail_LostFocus;
     tbxSearch.PreviewKeyDown      += TbxSearch_PreviewKeyDown;
 }
Exemple #3
0
 public Email(Order order)
 {
     InitializeComponent();
     bL = MyBL.Instance;
     sendButton.Click += SendButton_Click;
     currentOrder      = order;
     hostingUnit       = bL.getAllHostingUnits(item => item.HostingUnitKey == currentOrder.HostingUnitKey).FirstOrDefault();
     DataContext       = hostingUnit;
 }
Exemple #4
0
        public MainWindow()
        {
            InitializeComponent();
            bl = MyBL.Instance;
            comboBoxDiscpline.DataContext = Enum.GetNames(typeof(Enums.Discipline)).ToList();
            _SpecialityCollection         = new ObservableCollection <Speciality>(bl.getSpecsList());
            dgSpecialities.DataContext    = _SpecialityCollection;

            _WorkersCollection    = new ObservableCollection <Worker>(bl.getWorkersList());
            lbWorkers.DataContext = _WorkersCollection;
        }
Exemple #5
0
        public MainWindow()
        {
            InitializeComponent();
            bL = MyBL.Instance;
            string hostingUnitName = "Nave Mahmad";

            bL.addHostingUnit(new HostingUnit(new Host(), hostingUnitName, Enums.HostingUnitType.Zimmer));
            bL.addOrder(new BE.Order(Enums.OrderStatus.Closed, DateTime.Now));

            lb_HostingUnits.DataContext = bL.getAllHostingUnits();
            // lb_HostingUnits.DataContext = bL.getHostingUnits(hostingUnit => hostingUnit.HostingUnitType == Enums.HostingUnitType.Zimmer);
        }
Exemple #6
0
        public AddHostingUnit(HostingUnit hostingUnit)
        {
            bL = MyBL.Instance;
            this.hostingUnit = hostingUnit;
            InitializeComponent();

            gridDetails.DataContext = hostingUnit;
            if (hostingUnit.HostingUnitName != null)
            {
                hostingUnitNameTextBox.IsEnabled = false;
            }
            hostingUnitTypeComboBox.ItemsSource = Enum.GetValues(typeof(Enums.HostingUnitType));
        }
Exemple #7
0
 public Orders()
 {
     InitializeComponent();
     bL = MyBL.Instance;
     OrdersGrid.AutoGeneratingColumn += ((MainWindow)System.Windows.Application.Current.MainWindow).OrdersGrid_AutoGeneratingColumn;
     OrdersGrid.SelectionChanged     += OrdersGrid_SelectionChanged;
     OrdersGrid.MouseDoubleClick     += OrdersGrid_MouseDoubleClick;
     tbxSearch.PreviewKeyDown        += TbxSearch_PreviewKeyDown;
     IconMail.Click                  += IconMail_Click;
     IconClose.Click                 += IconClose_Click;
     tbxSearch.TextChanged           += OrderFilter;
     cbxOrderStatus.SelectionChanged += OrderFilter;
 }
Exemple #8
0
    protected void ddlcountry_SelectedIndexChanged(object sender, EventArgs e)
    {
        MyBL objbl = new MyBL();
        // DataSet ds = new DataSet();
        // SqlDataReader dr = objbl.getbyid();
        //MyEL objel = new MyEL();
        List <MyEL> lstel = new List <MyEL>();
        // lstel = objbl.getbyid(ddlcountry.SelectedItem.Text);
        DataSet ds = objbl.getbyid(ddlcountry.SelectedItem.Text);

        ddlstate.DataSource     = ds;
        ddlstate.DataValueField = "Id";
        ddlstate.DataTextField  = "State_Name";
        ddlstate.DataBind();
    }
Exemple #9
0
 public MainWindow()
 {
     try
     {
         InitializeComponent();
         bL = MyBL.Instance;
         Guest_Zone();
         Host_Zone();
         Manager_Zone();
         LoadBanksList();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }
Exemple #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        // if (!IsPostBack)
        {
            MyBL    objbl = new MyBL();
            DataSet ds    = new DataSet();
            ds = objbl.GetAll();

            ddlcountry.DataSource     = ds;
            ddlcountry.DataValueField = "Id";
            ddlcountry.DataTextField  = "Country_Name";
            ddlcountry.DataBind();

            ddlcountry.Items.Insert(0, new ListItem("-- Select --", "0"));
        }
    }
 public MapModel()//string city
 {
     myBL = new MyBL();
 }
 public SmallWeeklyModel(string city)
 {
     myBL = new MyBL();
 }
 public CurrentModel(string city)
 {
     myBL = new MyBL();
 }