public Reminders(Database db)
 {
     InitializeComponent();
     this.Text = Config.Name + " :: " + "Mahnungen";
     this.Icon = Properties.Resources.simba;
     this.db = db;
     reminder = new Reminder(db);
     fillReminders();
     foreach (KeyValuePair<int, string> item in Reminder.Types)
     {
         cb_type.Items.Add(item.Value);
     }
 }
 private void neuToolStripMenuItem_Click(object sender, EventArgs e)
 {
     lv_reminders.SelectedIndices.Clear();
     reminder = new Reminder(db);
     setReminderFields();
     setEditMode(true);
     tb_name.Focus();
 }
        private void lv_reminders_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (lv_reminders.SelectedIndices.Count > 0)
            {
                reminder = new Reminder(db, lv_reminders.SelectedItems[0].Text);

                setReminderFields();

                setEditMode(false);

            }
        }