示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            ListDelete listDelete = new ListDelete();

            FormSendEvent(listDelete);
            listDelete.Show();
            Close();
        }
示例#2
0
 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");
     }
 }