You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
946 B

1 year ago
  1. using CDPShared;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
  12. namespace CircleViewer.Dialogs
  13. {
  14. public partial class RevokeDeviceDlg : Form
  15. {
  16. CDPWorker _cdp;
  17. public RevokeDeviceDlg(CDPWorker cdp)
  18. {
  19. _cdp = cdp;
  20. InitializeComponent();
  21. }
  22. private async void bnRevoke_Click(object sender, EventArgs e)
  23. {
  24. string userName = Environment.UserDomainName + "\\" + Environment.UserName;
  25. await _cdp.AddMessage($"{userName} revoked device with Id: ", (Int32)CircleViewMessages.DeviceRevoked);
  26. }
  27. private void RevokeDeviceDlg_Load(object sender, EventArgs e)
  28. {
  29. }
  30. }
  31. }