SettingsForm.Designer.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. namespace qdr.app.tools.claudecodebalancewidget
  2. {
  3. partial class SettingsForm
  4. {
  5. /// <summary>
  6. /// Required designer variable.
  7. /// </summary>
  8. private System.ComponentModel.IContainer components = null;
  9. /// <summary>
  10. /// Clean up any resources being used.
  11. /// </summary>
  12. /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  13. protected override void Dispose(bool disposing)
  14. {
  15. if (disposing && (components != null))
  16. {
  17. components.Dispose();
  18. }
  19. base.Dispose(disposing);
  20. }
  21. #region Windows Form Designer generated code
  22. /// <summary>
  23. /// Required method for Designer support - do not modify
  24. /// the contents of this method with the code editor.
  25. /// </summary>
  26. private void InitializeComponent()
  27. {
  28. this.SuspendLayout();
  29. // Form
  30. this.ClientSize = new Size(500, 250);
  31. this.Text = "Settings - Claude Balance Monitor";
  32. this.StartPosition = FormStartPosition.CenterParent;
  33. this.FormBorderStyle = FormBorderStyle.FixedDialog;
  34. this.MaximizeBox = false;
  35. this.MinimizeBox = false;
  36. // Instructions Label
  37. instructionsLabel = new Label();
  38. instructionsLabel.Text = "To get your session token:\n" +
  39. "1. Go to https://console.anthropic.com/settings/billing\n" +
  40. "2. Open Developer Tools (F12)\n" +
  41. "3. Go to Application → Cookies\n" +
  42. "4. Find and copy the 'sessionKey' cookie value";
  43. instructionsLabel.Location = new Point(10, 10);
  44. instructionsLabel.Size = new Size(470, 80);
  45. instructionsLabel.Font = new Font("Segoe UI", 9);
  46. this.Controls.Add(instructionsLabel);
  47. // Session Token Label
  48. var tokenLabel = new Label();
  49. tokenLabel.Text = "Session Token:";
  50. tokenLabel.Location = new Point(10, 100);
  51. tokenLabel.Size = new Size(100, 20);
  52. tokenLabel.Font = new Font("Segoe UI", 9, FontStyle.Bold);
  53. this.Controls.Add(tokenLabel);
  54. // Session Token TextBox
  55. sessionTokenTextBox = new TextBox();
  56. sessionTokenTextBox.Location = new Point(10, 125);
  57. sessionTokenTextBox.Size = new Size(370, 23);
  58. sessionTokenTextBox.UseSystemPasswordChar = true;
  59. sessionTokenTextBox.Font = new Font("Consolas", 9);
  60. this.Controls.Add(sessionTokenTextBox);
  61. // Show/Hide Button
  62. showHideButton = new Button();
  63. showHideButton.Text = "Show";
  64. showHideButton.Location = new Point(390, 125);
  65. showHideButton.Size = new Size(60, 23);
  66. showHideButton.Click += ShowHideButton_Click;
  67. this.Controls.Add(showHideButton);
  68. // Test Connection Button
  69. var testButton = new Button();
  70. testButton.Text = "Test Connection";
  71. testButton.Location = new Point(10, 160);
  72. testButton.Size = new Size(120, 30);
  73. testButton.Click += TestButton_Click;
  74. this.Controls.Add(testButton);
  75. // Status Label
  76. var statusLabel = new Label();
  77. statusLabel.Name = "statusLabel";
  78. statusLabel.Text = "Enter your session token and click 'Test Connection'";
  79. statusLabel.Location = new Point(140, 165);
  80. statusLabel.Size = new Size(350, 20);
  81. statusLabel.ForeColor = Color.Gray;
  82. this.Controls.Add(statusLabel);
  83. // OK Button
  84. okButton = new Button();
  85. okButton.Text = "OK";
  86. okButton.Location = new Point(295, 200);
  87. okButton.Size = new Size(90, 30);
  88. okButton.Click += OkButton_Click;
  89. this.Controls.Add(okButton);
  90. // Cancel Button
  91. cancelButton = new Button();
  92. cancelButton.Text = "Cancel";
  93. cancelButton.Location = new Point(395, 200);
  94. cancelButton.Size = new Size(90, 30);
  95. cancelButton.Click += CancelButton_Click;
  96. this.Controls.Add(cancelButton);
  97. this.ResumeLayout(false);
  98. }
  99. #endregion
  100. }
  101. }