private void btnPing_ClickAsync(object sender, EventArgs e)
        {
            var task = new InfluxDBThreadTask(httpInfluxDBClient, InfluxDBThreadTask.DBOptsType.Ping, tbxDbQuery.Text, tbxSqlQuery.Text, (result) => {
                Console.WriteLine("PING结果:" + result);
                MessageBox.Show(result, "PING消息");
            });

            InfluxDBThreadWorkQueue.Enqueue(task);
        }
        private void btnQuery_Click(object sender, EventArgs e)
        {
            var task = new InfluxDBThreadTask(httpInfluxDBClient, InfluxDBThreadTask.DBOptsType.Query, tbxDbQuery.Text, tbxSqlQuery.Text, (result) => {
                Console.WriteLine("数据库查询数据:" + result);
                MessageBox.Show("查询成功!", "查询消息");
                tbxQueryResult.Text = result;
            });

            InfluxDBThreadWorkQueue.Enqueue(task);
        }
 private void btnSave_Click(object sender, EventArgs e)
 {
     try
     {
         var task = new InfluxDBThreadTask(httpInfluxDBClient, InfluxDBThreadTask.DBOptsType.Write, tbxDbSave.Text, tbxSqlWrite.Text, (result) => {
             Console.WriteLine("数据库写入数据:result=" + result);
             MessageBox.Show(string.IsNullOrEmpty(result) ? "保存成功!" : "保存失败:" + result, "保存消息");
         });
         InfluxDBThreadWorkQueue.Enqueue(task);
     }
     catch (Exception ex)
     {
         MessageBox.Show("" + ex.Message, "保存异常");
     }
 }