コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmTimerSessionForm frm = new frmTimerSessionForm();

            if (frm.ShowAdd(this, _idTimer) == DialogResult.OK)
            {
                refreshTimerSessions();
            }
        }
コード例 #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.lvwTimerSessions.SelectedItems.Count > 0)
     {
         ListViewItem        lvi = this.lvwTimerSessions.SelectedItems[0];
         frmTimerSessionForm frm = new frmTimerSessionForm();
         if (frm.ShowEdit(this, _idTimer, Convert.ToInt64(lvi.Tag)) == DialogResult.OK)
         {
             refreshTimerSessions();
         }
     }
 }