Example #1
0
File: frmMain.cs Project: wpmyj/c3
        private void mnuDeviceHistoryData_Click(object sender, EventArgs e)
        {
            IDevice device = this.GetSelectedDevice(true);

            if (device != null)
            {
                //while (device.DeviceDataManager.Datas.Count < 10)
                //{
                //    //  add test data
                //    //
                //    FlowmeterData d = new Xdgk.Common.FlowmeterData();
                //    d.InstantFlux = 10.2f;
                //    d.Sum = 20.4f;

                //    device.DeviceDataManager.Last = d;
                //}

                frmDeviceHistoryData f = new frmDeviceHistoryData(device);
                f.ShowDialog();
            }
        }
Example #2
0
        private void mnuDeviceHistoryData_Click(object sender, EventArgs e)
        {
            IDevice device = this.GetSelectedDevice(true);
            if (device != null)
            {
                //while (device.DeviceDataManager.Datas.Count < 10)
                //{
                //    //  add test data
                //    //
                //    FlowmeterData d = new Xdgk.Common.FlowmeterData();
                //    d.InstantFlux = 10.2f;
                //    d.Sum = 20.4f;

                //    device.DeviceDataManager.Last = d;
                //}

                frmDeviceHistoryData f = new frmDeviceHistoryData(device);
                f.ShowDialog();
            }
        }