private void m_ctrlOK_Click(object sender, EventArgs e)
        {
            if (m_ctrlName.Text == "")
            {
                MessageBox.Show("장치의 이름을 입력해주세요!");
                return;
            }

            selected      = new LogicManager.Trigger();
            selected.name = m_ctrlName.Text;

            selected.m_condition.who  = m_ctrlWho.Text;
            selected.m_condition.when = m_ctrlWhen.Text;
            selected.m_operation.what = m_ctrlWhat.Text;
            selected.m_operation.how  = m_ctrlHow.Text;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
예제 #2
0
 private void m_ctrlDeleteTrigger_Click(object sender, EventArgs e)
 {
     LogicManager.Trigger seleted = (LogicManager.Trigger)m_ctrlTriggerList.SelectedItem;
     currentTask.triggerList.Remove(seleted);
     UpdateList();
 }