Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmTimerForm frm = new frmTimerForm();

            if (frm.ShowAdd(this) == DialogResult.OK)
            {
                refreshTimers();
            }
        }
Beispiel #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (this.lvwTimers.SelectedItems.Count > 0)
     {
         ListViewItem lvi = this.lvwTimers.SelectedItems[0];
         frmTimerForm frm = new frmTimerForm();
         if (frm.ShowEdit(this, Convert.ToInt64(lvi.Tag)) == DialogResult.OK)
         {
             refreshTimers();
         }
     }
 }