private void buttonAdd_Click(object sender, EventArgs e)
 {
     //display window to add
     CustomTimersManagerEditWindow ui = new CustomTimersManagerEditWindow(this);
     ui.Show();
     ui.FormClosed += OnTimerAdded;
 }
 private void buttonEdit_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex > -1)
     {
         CustomTimersManagerEditWindow ui = new CustomTimersManagerEditWindow(this, listBox1.SelectedItem.ToString());
         ui.FormClosed += OnTimerAdded;
         ui.Show();
     }
 }