Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     tempDataInterface             = new TempDataInterface(DateTime.Now);//实际应用时,应该使用数据库中最后一条呼叫数据的时间
     tempDataInterface.NewTempData = new TempDataInterface.NewTempDataCallbackDelegate(NewTempData);
     tempDataInterface.NewCallData = new TempDataInterface.NewCallDataCallbackDelegate(NewCallData);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();

            //DataTable dt = 温度数据DataDBOption.DataTableSelect_GetLastDataTime();
            DateTime time;

            time = DateTime.Now;//最开始使用新程序的时间
            tempDataInterface = new TempDataInterface(time.AddMinutes(-20));
            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);
            }
            count = 0;
        }