Exemple #1
0
        public AlarmManagerControl(TimeSeriesDatabase db)
        {
            InitializeComponent();
            m_svr = db.Server;

            SoundFiles s = new SoundFiles(m_svr);

            this.tabPageSounds.Controls.Add(s);
            s.Dock = DockStyle.Fill;

            AlarmDataSet ds = AlarmDataSet.CreateInstance(db);
            AlarmSetup   s1 = new AlarmSetup(ds);

            this.tabPageSetup.Controls.Add(s1);
            s1.Dock = DockStyle.Fill;


            AlarmQueue q = new AlarmQueue(ds);

            this.tabPageAlarms.Controls.Add(q);
            q.Dock = DockStyle.Fill;

            AlarmDefinitionUI def = new AlarmDefinitionUI(ds);

            this.tabPageAlarmDef.Controls.Add(def);
            def.Dock = DockStyle.Fill;

            AlarmLog log = new AlarmLog(ds);

            this.tabPageLog.Controls.Add(log);
            log.Dock = DockStyle.Fill;
        }
Exemple #2
0
        public AlarmManagerMain(BasicDBServer svr)
        {
            m_svr = svr;
            InitializeComponent();
            SoundFiles s = new SoundFiles(svr);

            this.tabPageSounds.Controls.Add(s);
            s.Dock = DockStyle.Fill;

            AlarmDataSet ds = AlarmDataSet.CreateInstance(svr);
            AlarmSetup   s1 = new AlarmSetup(ds);

            this.tabPageSetup.Controls.Add(s1);
            s1.Dock = DockStyle.Fill;


            AlarmQueue q = new AlarmQueue(ds);

            this.tabPageAlarms.Controls.Add(q);
            q.Dock = DockStyle.Fill;

            AlarmDefinition def = new AlarmDefinition(ds);

            this.tabPageAlarmDef.Controls.Add(def);
            def.Dock = DockStyle.Fill;
        }