Пример #1
0
        public EmployeeInfoPage()
        {
            this.InitializeComponent();
            GraphBLL graph = new GraphBLL();

            this.ProductsGrid.ItemsSource = graph.GetAllEmployeeInfo();
        }
Пример #2
0
 public LoginPage()
 {
     this.InitializeComponent();
     this.GraphBLL = new GraphBLL();
     this.LoginBLL = new LoginBLL();
     //Displays to the screen all the admins you have registered
     this.UsersLabel.Text = $"You have total of {this.LoginBLL.GetUsersCount()} Admins.";
 }
Пример #3
0
 public JobPage()
 {
     this.InitializeComponent();
     graph = new GraphBLL();
     this.ProductsGrid.ItemsSource = graph.GetEmployeeGraph();
     // timer
     timer.Interval = new TimeSpan(0, 0, 1);
     timer.Tick    += Timer_Tick;
     timer.Start();
 }
Пример #4
0
 /// <summary>
 /// Refreshes the grid of recently commed employees
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnRefresh_Click(object sender, RoutedEventArgs e)
 {
     graph = new GraphBLL();
     if (IsToday)
     {
         this.ProductsGrid.ItemsSource = graph.GetEmployeeGraph();
     }
     else
     {
         this.ProductsGrid.ItemsSource = graph.GetEmployeeGraphMounght();
     }
 }
Пример #5
0
 /// <summary>
 /// Ticks in 2 seconds for Automatic Refresh checkbox
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Timer_Tick(object sender, object e)
 {
     if (AutomaticCheckOnn)
     {
         graph = new GraphBLL();
         if (IsToday)
         {
             this.ProductsGrid.ItemsSource = graph.GetEmployeeGraph();
         }
         else
         {
             this.ProductsGrid.ItemsSource = graph.GetEmployeeGraphMounght();
         }
     }
 }
Пример #6
0
 public EditPage()
 {
     this.InitializeComponent();
     this.employeeBLL = new EmployeeBLL();
     this.GraphBLL    = new GraphBLL();
 }
Пример #7
0
 public RegisterPage()
 {
     this.InitializeComponent();
     this.GraphBLL = new GraphBLL();
     this.LoginBLL = new LoginBLL();
 }
Пример #8
0
 public CreatePage()
 {
     this.InitializeComponent();
     employeeBLL   = new EmployeeBLL();
     this.GraphBLL = new GraphBLL();
 }