private void toolStripButton1_Click(object sender, EventArgs e) { tempDataInterface = new TempDataInterface(new DateTime(2015, 12, 03, 15, 24, 00)); for (int i = 0; i < 10; i++) { tempDataInterface.ShowText[i] = new TempDataInterface.ShowTextCallbackDelegate(ShowText); tempDataInterface.NewTempData[i] = new TempDataInterface.NewTempDataCallbackDelegate(NewTempData); tempDataInterface.NewCallData[i] = new TempDataInterface.NewCallDataCallbackDelegate(NewCallData); } tempDataInterface.FirstIntCheckTime = new DateTime(2015, 12, 03, 15, 27, 00); tempDataInterface.GetData(28, 1); }