Exemple #1
0
        public void SetChart(LeaveChart Chart)
        {
            this.Chart = Chart;

            foreach (var carrier in Chart.EnumerateAllCarriers())
                NameInput.Items.Add(carrier);
            NameInput.SelectedIndex = 0;
        }
        public MainWindow()
        {
            InitializeComponent();

            try
            {
                Data = new LeaveChart();
                Data.LoadData();
                ApplyChangeToCurrentWeek("");
                UpdateDisplay();
            }
            catch (Exception e)
            {
                EmergencyClose = true;
                this.Close();
            }

            WeekChart.ApplyAction += ApplyChangeToCurrentWeek;

            AdminPasswordInput_TextChanged(null, null);

            Now_Click(null, null);
        }
Exemple #3
0
 public virtual LeaveAnalysisResults Analyze(LeaveChart Data)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public LeaveAnalysis(LeaveChart Chart)
 {
     this.ReportName = "Unimplemented Report";
     this.Summary = "This report lacks a summary.";
     StartDate = Chart.Weeks[0].SaturdayDate;
     EndDate = DateTime.Now.Date;
 }