Example #1
0
        private void donelist_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = donelist.SelectedIndex;

            listtype = "taskinfo5";
            card frm2 = new card(index - 1, listtype);

            frm2.ShowDialog();
        }
Example #2
0
        private void todobutton_Click(object sender, EventArgs e)
        {
            if (todolist.Items.Count > 0)
            {
                id = todolist.Items.Count - 1;
            }
            else
            {
                id = -1;
            }
            listtype = "taskinfo";
            card frm2 = new card(id, listtype);

            frm2.FormClosed += Frm2_FormClosed;
            frm2.ShowDialog();

            todolist.BorderStyle  = System.Windows.Forms.BorderStyle.Fixed3D;
            todolist.DrawMode     = DrawMode.OwnerDrawVariable;
            todolist.MeasureItem +=
                new MeasureItemEventHandler(todolist_MeasureItem);
            todolist.DrawItem += new DrawItemEventHandler(todolist_DrawItem);
            this.Controls.Add(this.todolist);
        }