EnhancedSettingsForm.Designer.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. namespace qdr.app.tools.claudecodebalancewidget
  2. {
  3. partial class EnhancedSettingsForm
  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(600, 500);
  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. // Authentication Method Selection
  37. var authMethodLabel = new Label();
  38. authMethodLabel.Text = "Authentication Method:";
  39. authMethodLabel.Location = new Point(10, 10);
  40. authMethodLabel.Size = new Size(150, 20);
  41. authMethodLabel.Font = new Font("Segoe UI", 9, FontStyle.Bold);
  42. this.Controls.Add(authMethodLabel);
  43. sessionRadioButton = new RadioButton();
  44. sessionRadioButton.Text = "Session Cookie (Legacy)";
  45. sessionRadioButton.Location = new Point(10, 35);
  46. sessionRadioButton.Size = new Size(200, 20);
  47. sessionRadioButton.Checked = true;
  48. sessionRadioButton.CheckedChanged += AuthMethod_CheckedChanged;
  49. this.Controls.Add(sessionRadioButton);
  50. apiRadioButton = new RadioButton();
  51. apiRadioButton.Text = "API Key (Recommended)";
  52. apiRadioButton.Location = new Point(220, 35);
  53. apiRadioButton.Size = new Size(200, 20);
  54. apiRadioButton.CheckedChanged += AuthMethod_CheckedChanged;
  55. this.Controls.Add(apiRadioButton);
  56. // Tab Control
  57. tabControl = new TabControl();
  58. tabControl.Location = new Point(10, 65);
  59. tabControl.Size = new Size(570, 350);
  60. this.Controls.Add(tabControl);
  61. // Session Cookie Tab
  62. sessionTabPage = new TabPage("Session Cookie");
  63. CreateSessionTab();
  64. tabControl.TabPages.Add(sessionTabPage);
  65. // API Key Tab
  66. apiTabPage = new TabPage("API Key");
  67. CreateApiTab();
  68. tabControl.TabPages.Add(apiTabPage);
  69. // Help Tab
  70. helpTabPage = new TabPage("Help");
  71. CreateHelpTab();
  72. tabControl.TabPages.Add(helpTabPage);
  73. // OK Button
  74. okButton = new Button();
  75. okButton.Text = "OK";
  76. okButton.Location = new Point(405, 430);
  77. okButton.Size = new Size(90, 30);
  78. okButton.Click += OkButton_Click;
  79. this.Controls.Add(okButton);
  80. // Cancel Button
  81. cancelButton = new Button();
  82. cancelButton.Text = "Cancel";
  83. cancelButton.Location = new Point(505, 430);
  84. cancelButton.Size = new Size(90, 30);
  85. cancelButton.Click += CancelButton_Click;
  86. this.Controls.Add(cancelButton);
  87. this.ResumeLayout(false);
  88. }
  89. #endregion
  90. }
  91. }