private void dataGridViewProjectDevice_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
        {
            try
            {
                if (e.StateChanged == DataGridViewElementStates.Selected)
                {
                    if (dataTableDevice.Rows.Count > 0)
                    {
                        dataRowDevice = dataTableDevice.Rows[e.Row.Index];
                        int projectDeviceID = Convert.ToInt32(dataRowDevice["ID"]);
                        ServiceClient client=new ServiceClient();
                        dataTableChannelSensor = client.SelectChannelSensorByProjectDevice(projectDeviceID);
                        dataGridViewChannelSensor.DataSource = dataTableChannelSensor;
                    }
                }

            }
            catch (Exception ex)
            {
                ExceptionLog.Instance.WriteLog(ex, LogType.UI);
                ZBMMessageBox.ShowError(ex);
            }
        }