Beispiel #1
0
        private void MainPage_Activated(object sender, EventArgs e)
        {
            if (_refreshGrid)
            {
                _refreshGrid = false;

                switch (GridTypeNow)
                {
                case "J":
                    _jobLogic.LoadGrid(dataGridView1);
                    break;

                case "T":
                    _triggerLogic.LoadGrid(dataGridView1, Jobs);
                    break;
                }
            }
        }
        private void MainPage_Activated(object sender, EventArgs e)
        {
            if (_refreshGrid)
            {
                _refreshGrid = false;

                switch (_gridTypeEnumNow)
                {
                case ViewTypeEnum.JOB:
                    _jobLogic.LoadGrid(dataGridView1);
                    break;

                case ViewTypeEnum.TRIGGER:
                    _triggerLogic.LoadGrid(dataGridView1, Jobs);
                    break;

                case ViewTypeEnum.LOG:
                    //_triggerLogic.LoadGrid(dataGridView1, Jobs);
                    break;
                }
            }
        }
Beispiel #3
0
        public MainPage()
        {
            _jobLogic     = new JobLogic();
            _triggerLogic = new TriggerLogic();

            InitializeComponent();

            Jobs     = _jobLogic.appoggio;
            Triggers = _triggerLogic.appoggio;

            _triggerLogic.LoadGrid(dataGridView1, Jobs);

            GridTypeNow = "T";
            try
            {
                CheckStatus();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
        }
        public MainPage()
        {
            _jobLogic     = new JobLogic();
            _triggerLogic = new TriggerLogic();
            _logLogic     = new LogLogic();

            InitializeComponent();

            Jobs     = _jobLogic.appoggio;
            Triggers = _triggerLogic.appoggio;

            EnableView(ViewTypeEnum.TRIGGER);
            _triggerLogic.LoadGrid(dataGridView1, Jobs);

            try
            {
                CheckStatus();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }
        }