Ejemplo n.º 1
0
        //-------------------------- START METHOD -------------------------------------------------------------------------------------------
        public void Start(ActivitiesManager activitiesManager)
        {
            _activitiesManager = activitiesManager;
            _week = Week.GetInstance();

            _defaultState = new States.Default(activitiesManager);
            _QSstate      = new States.QuartersSelected();
            _SIPstate     = new States.SelectionInProgress();

            _currentState = _defaultState;
        }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            ActionHandler     actionHandler     = ActionHandler.GetInstance();
            ActivitiesManager activitiesManager = ActivitiesManager.GetInstance();

            _week     = Week.GetInstance();
            _dbAccess = DBAccess.GetInstance();

            activitiesManager.Start(ActivitiesPanel, actionHandler, _week);
            actionHandler.Start(activitiesManager);
            _week.ActualInitialisation(WeekGrid, WeekComboBox);

            StatsBtn.Click += actionHandler.StatsBtn_Click;
            WeekComboBox.SelectionChanged += actionHandler.WeekComboBox_SelectionChanged;
            PlanningRB.Checked            += actionHandler.PlanningRB_Checked;
            ReportingRB.Checked           += actionHandler.ReportingRB_Checked;
            AddActivityBtn.Click          += actionHandler.AddActivityBtn_Click;
            RemoveActivityBtn.Click       += actionHandler.RemoveActivityBtn_Click;
            MouseLeftButtonDown           += actionHandler.Window_MouseLeftButtonDown;
            MouseLeftButtonUp             += actionHandler.Window_MouseLeftButtonUp;
        }