Exemple #1
0
        private void AddEmployeeButton_Click(object sender, RoutedEventArgs e) // TODO
        {
            DailyScheduleView DailyView = new DailyScheduleView();

            SchedulePanel.Children.Add(DailyView);
            DailyView.NameLabel.Text = "( TOM )";
        }
Exemple #2
0
        private void MenuItem_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            DailyScheduleView dsv = sender as DailyScheduleView;

            if (dsv != null)
            {
                StackPanel sp = dsv.Parent as StackPanel;
                sp.Children.Remove(dsv);
            }
        }
Exemple #3
0
        public void LoadSchedule()
        {
            SelectedGroupSchedule.SubscribeToEvent(LoadUnplannedAssignments);

            SchedulePanel.Children.Clear();
            foreach (EmployeeSchedule item in SelectedGroupSchedule.EmployeeScheduleList)
            {
                DailyScheduleView DailyView = new DailyScheduleView(item);
                SchedulePanel.Children.Add(DailyView);
                DailyView.Width = DailyScheduleWidth;

                DailyView.NameLabel.Text = item.Name;
            }
        }
 public SelectEmployeeWindow(DailyScheduleView dailySchedule)
 {
     InitializeComponent();
     _dailySchedule = dailySchedule;
 }