Пример #1
0
        private void bCommunicator_Click(object sender, EventArgs e)
        {
            if (_comm == null)
            {
                var devCont = new DeviceController();
                var device = devCont.RetrieveDevice(_rule.DeviceId);

                var ai = new AddCommunicator(device,false);
                ai.ShowDialog();
                _comm = ai._communicator;
            }
            else
            {
                var cm = new CommunicatorModifier(_comm);
                cm.ShowDialog();
            }
        }
Пример #2
0
        private void button6_Click(object sender, EventArgs e)
        {
            var cont = new CommunicatorController();

            CommunicatorModifier cm = new CommunicatorModifier(cont.GetAllCommunicators().First());
            cm.Show();
        }