private void btnSendLog_Click(object sender, EventArgs e) { if (SelectedFormType == Device_EndPoint.Device) { lntInputs.Items.Add("Send Log : *" + txtLog.Text + "*"); APIs.SubmitDeviceLog(SelectedApiDevice.KeyPass, txtLog.Text, DateTime.Now); lntInputs.TopItem = lntInputs.Items[lntInputs.Items.Count - 1]; } if (SelectedFormType == Device_EndPoint.EndPoint) { lntInputs.Items.Add("Send Log : *" + txtLog.Text + "*"); APIs.SubmitEndPointLog(SelectedAPIEndPoint.KeyPass, txtLog.Text); lntInputs.TopItem = lntInputs.Items[lntInputs.Items.Count - 1]; } }
private void toolStripButton1_Click(object sender, EventArgs e) { APIs a = new APIs(); a.GetDevicesList(); }
private async void btnConnect_Click(object sender, EventArgs e) { await APIs.Connect(txtURL.Text, txtKey.Text); }