Esempio n. 1
0
        private void Btn_AddAlarm_Click(object sender, EventArgs e)
        {
            Wnd_AddAlarm wnd_AddAlarm = new Wnd_AddAlarm();

            if (wnd_AddAlarm.ShowDialog() == DialogResult.OK)
            {
                CreateAlarmItem(Pub.AlarmInfo, readFlag: false);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// TODO:编辑当前选择的项目
        /// </summary>
        private void EditCurrentItem()
        {
            Wnd_AddAlarm addAlarm = new Wnd_AddAlarm(Pub.CurrentSelectedItem.AlarmInfo);

            addAlarm.ShowDialog();
        }