示例#1
0
        private void tsm_Add_Click(object sender, EventArgs e)
        {
            var st = new SaveTimer(GroupTimers.Select(a => a.name).ToList());

            if (st.ShowDialog() == DialogResult.OK)
            {
                SaveTimer(st.model);
            }
        }
示例#2
0
 private void tsm_Edit_Click(object sender, EventArgs e)
 {
     if (dgv_TimerList.HasSelected())
     {
         var mod = dgv_TimerList.GetFirstSelected <GroupTimer>();
         var st  = new SaveTimer(mod, GroupTimers.Select(a => a.name).ToList());
         if (st.ShowDialog() == DialogResult.OK)
         {
             SaveTimer(st.model);
         }
     }
 }