private void button3_Click(object sender, EventArgs e) { ListDelete listDelete = new ListDelete(); FormSendEvent(listDelete); listDelete.Show(); Close(); }
private void ListManageRegister(object sender) { if (sender.GetType() == typeof(ListInsert)) { listInsert = (ListInsert)sender; listInsert.FormSendEvent += new ListInsert.FormSendDataHandler(ListInsertWork); } else if (sender.GetType() == typeof(ListUpdate)) { listUpdate = (ListUpdate)sender; listUpdate.FormSendEvent += new ListUpdate.FormSendDataHandler(ListUpdateWork); } else if (sender.GetType() == typeof(ListDelete)) { listDelete = (ListDelete)sender; listDelete.FormSendEvent += new ListDelete.FormSendDataHandler(ListDeleteWork); } else { ErrorForm errorForm = new ErrorForm(); errorForm.Show(); errorForm.setMessege("error"); } }