169 lines
8.2 KiB
C#
169 lines
8.2 KiB
C#
![]() |
namespace GiteaDocGenerator
|
|||
|
{
|
|||
|
partial class Form1
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Required designer variable.
|
|||
|
/// </summary>
|
|||
|
private System.ComponentModel.IContainer components = null;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Clean up any resources being used.
|
|||
|
/// </summary>
|
|||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|||
|
protected override void Dispose(bool disposing)
|
|||
|
{
|
|||
|
if (disposing && (components != null))
|
|||
|
{
|
|||
|
components.Dispose();
|
|||
|
}
|
|||
|
base.Dispose(disposing);
|
|||
|
}
|
|||
|
|
|||
|
#region Windows Form Designer generated code
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Required method for Designer support - do not modify
|
|||
|
/// the contents of this method with the code editor.
|
|||
|
/// </summary>
|
|||
|
private void InitializeComponent()
|
|||
|
{
|
|||
|
this.label1 = new System.Windows.Forms.Label();
|
|||
|
this.txtRepoUrl = new System.Windows.Forms.TextBox();
|
|||
|
this.label2 = new System.Windows.Forms.Label();
|
|||
|
this.txtSampleDocx = new System.Windows.Forms.TextBox();
|
|||
|
this.btnSelectSample = new System.Windows.Forms.Button();
|
|||
|
this.btnGenerate = new System.Windows.Forms.Button();
|
|||
|
this.lblStatus = new System.Windows.Forms.Label();
|
|||
|
this.label3 = new System.Windows.Forms.Label();
|
|||
|
this.txtApiKey = new System.Windows.Forms.TextBox();
|
|||
|
this.SuspendLayout();
|
|||
|
//
|
|||
|
// label1
|
|||
|
//
|
|||
|
this.label1.AutoSize = true;
|
|||
|
this.label1.Location = new System.Drawing.Point(12, 15);
|
|||
|
this.label1.Name = "label1";
|
|||
|
this.label1.Size = new System.Drawing.Size(143, 13);
|
|||
|
this.label1.TabIndex = 0;
|
|||
|
this.label1.Text = "URL репозитория Gitea:";
|
|||
|
//
|
|||
|
// txtRepoUrl
|
|||
|
//
|
|||
|
this.txtRepoUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.txtRepoUrl.Location = new System.Drawing.Point(161, 12);
|
|||
|
this.txtRepoUrl.Name = "txtRepoUrl";
|
|||
|
this.txtRepoUrl.Size = new System.Drawing.Size(411, 20);
|
|||
|
this.txtRepoUrl.TabIndex = 1;
|
|||
|
//
|
|||
|
// label2
|
|||
|
//
|
|||
|
this.label2.AutoSize = true;
|
|||
|
this.label2.Location = new System.Drawing.Point(12, 70);
|
|||
|
this.label2.Name = "label2";
|
|||
|
this.label2.Size = new System.Drawing.Size(127, 13);
|
|||
|
this.label2.TabIndex = 5;
|
|||
|
this.label2.Text = "Файл-пример DOCX:";
|
|||
|
//
|
|||
|
// txtSampleDocx
|
|||
|
//
|
|||
|
this.txtSampleDocx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.txtSampleDocx.Location = new System.Drawing.Point(161, 67);
|
|||
|
this.txtSampleDocx.Name = "txtSampleDocx";
|
|||
|
this.txtSampleDocx.ReadOnly = true;
|
|||
|
this.txtSampleDocx.Size = new System.Drawing.Size(323, 20);
|
|||
|
this.txtSampleDocx.TabIndex = 6;
|
|||
|
//
|
|||
|
// btnSelectSample
|
|||
|
//
|
|||
|
this.btnSelectSample.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.btnSelectSample.Location = new System.Drawing.Point(490, 65);
|
|||
|
this.btnSelectSample.Name = "btnSelectSample";
|
|||
|
this.btnSelectSample.Size = new System.Drawing.Size(82, 23);
|
|||
|
this.btnSelectSample.TabIndex = 7;
|
|||
|
this.btnSelectSample.Text = "Выбрать...";
|
|||
|
this.btnSelectSample.UseVisualStyleBackColor = true;
|
|||
|
this.btnSelectSample.Click += new System.EventHandler(this.btnSelectSample_Click);
|
|||
|
//
|
|||
|
// btnGenerate
|
|||
|
//
|
|||
|
this.btnGenerate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.btnGenerate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|||
|
this.btnGenerate.Location = new System.Drawing.Point(15, 103);
|
|||
|
this.btnGenerate.Name = "btnGenerate";
|
|||
|
this.btnGenerate.Size = new System.Drawing.Size(557, 35);
|
|||
|
this.btnGenerate.TabIndex = 8;
|
|||
|
this.btnGenerate.Text = "Сгенерировать";
|
|||
|
this.btnGenerate.UseVisualStyleBackColor = true;
|
|||
|
this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click);
|
|||
|
//
|
|||
|
// lblStatus
|
|||
|
//
|
|||
|
this.lblStatus.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
|||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.lblStatus.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
|
|||
|
this.lblStatus.Location = new System.Drawing.Point(12, 153);
|
|||
|
this.lblStatus.Name = "lblStatus";
|
|||
|
this.lblStatus.Size = new System.Drawing.Size(560, 23);
|
|||
|
this.lblStatus.TabIndex = 9;
|
|||
|
this.lblStatus.Text = "Статус: Ожидание";
|
|||
|
this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|||
|
//
|
|||
|
// label3
|
|||
|
//
|
|||
|
this.label3.AutoSize = true;
|
|||
|
this.label3.Location = new System.Drawing.Point(12, 43);
|
|||
|
this.label3.Name = "label3";
|
|||
|
this.label3.Size = new System.Drawing.Size(107, 13);
|
|||
|
this.label3.TabIndex = 2;
|
|||
|
this.label3.Text = "Google AI API Key:";
|
|||
|
//
|
|||
|
// txtApiKey
|
|||
|
//
|
|||
|
this.txtApiKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|||
|
this.txtApiKey.Location = new System.Drawing.Point(161, 40);
|
|||
|
this.txtApiKey.Name = "txtApiKey";
|
|||
|
this.txtApiKey.Size = new System.Drawing.Size(411, 20);
|
|||
|
this.txtApiKey.TabIndex = 3;
|
|||
|
//this.txtApiKey.UseSystemPasswordChar = true; // Можно раскомментировать, чтобы скрыть ключ звездочками
|
|||
|
//
|
|||
|
// Form1
|
|||
|
//
|
|||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|||
|
this.ClientSize = new System.Drawing.Size(584, 188);
|
|||
|
this.Controls.Add(this.txtApiKey);
|
|||
|
this.Controls.Add(this.label3);
|
|||
|
this.Controls.Add(this.lblStatus);
|
|||
|
this.Controls.Add(this.btnGenerate);
|
|||
|
this.Controls.Add(this.btnSelectSample);
|
|||
|
this.Controls.Add(this.txtSampleDocx);
|
|||
|
this.Controls.Add(this.label2);
|
|||
|
this.Controls.Add(this.txtRepoUrl);
|
|||
|
this.Controls.Add(this.label1);
|
|||
|
this.MinimumSize = new System.Drawing.Size(450, 220); // Ограничение минимального размера
|
|||
|
this.Name = "Form1";
|
|||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|||
|
this.Text = "Генератор Документации Gitea + Gemini";
|
|||
|
this.ResumeLayout(false);
|
|||
|
this.PerformLayout();
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
private System.Windows.Forms.Label label1;
|
|||
|
private System.Windows.Forms.TextBox txtRepoUrl;
|
|||
|
private System.Windows.Forms.Label label2;
|
|||
|
private System.Windows.Forms.TextBox txtSampleDocx;
|
|||
|
private System.Windows.Forms.Button btnSelectSample;
|
|||
|
private System.Windows.Forms.Button btnGenerate;
|
|||
|
private System.Windows.Forms.Label lblStatus;
|
|||
|
private System.Windows.Forms.Label label3;
|
|||
|
private System.Windows.Forms.TextBox txtApiKey;
|
|||
|
}
|
|||
|
}
|