0% found this document useful (0 votes)
13 views3 pages

Form1 Designer Cs

The document is a C# code snippet for a Windows Forms application that implements arithmetic coding. It includes UI components for encoding and decoding messages, with buttons for user interaction and text boxes for input, code, and output. The application is designed to handle messages consisting of characters A, B, C, and #.

Uploaded by

asailay666
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Form1 Designer Cs

The document is a C# code snippet for a Windows Forms application that implements arithmetic coding. It includes UI components for encoding and decoding messages, with buttons for user interaction and text boxes for input, code, and output. The application is designed to handle messages consisting of characters A, B, C, and #.

Uploaded by

asailay666
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

namespace ArithmeticCodingLab6

{
partial class Form1
{
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.Button btnEncode;
private System.Windows.Forms.Button btnDecode;
private System.Windows.Forms.TextBox txtInput;
private System.Windows.Forms.TextBox txtCode;
private System.Windows.Forms.TextBox txtOutput;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;

protected override void Dispose(bool disposing)


{
if (disposing && (components != null))
components.Dispose();
base.Dispose(disposing);
}

private void InitializeComponent()


{
this.btnEncode = new System.Windows.Forms.Button();
this.btnDecode = new System.Windows.Forms.Button();
this.txtInput = new System.Windows.Forms.TextBox();
this.txtCode = new System.Windows.Forms.TextBox();
this.txtOutput = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btnEncode
//
this.btnEncode.Location = new System.Drawing.Point(12, 120);
this.btnEncode.Name = "btnEncode";
this.btnEncode.Size = new System.Drawing.Size(200, 34);
this.btnEncode.TabIndex = 0;
this.btnEncode.Text = "Кодировать (Encode)";
this.btnEncode.UseVisualStyleBackColor = true;
this.btnEncode.Click += new System.EventHandler(this.btnEncode_Click);
//
// btnDecode
//
this.btnDecode.Location = new System.Drawing.Point(230, 120);
this.btnDecode.Name = "btnDecode";
this.btnDecode.Size = new System.Drawing.Size(200, 34);
this.btnDecode.TabIndex = 1;
this.btnDecode.Text = "Декодировать (Decode)";
this.btnDecode.UseVisualStyleBackColor = true;
this.btnDecode.Click += new System.EventHandler(this.btnDecode_Click);
//
// txtInput
//
this.txtInput.Location = new System.Drawing.Point(12, 30);
this.txtInput.Name = "txtInput";
this.txtInput.Size = new System.Drawing.Size(418, 22);
this.txtInput.TabIndex = 2;
this.txtInput.Text = "A A A B C #"; // пример (можешь удалить)
//
// txtCode
//
this.txtCode.Location = new System.Drawing.Point(12, 80);
this.txtCode.Name = "txtCode";
this.txtCode.Size = new System.Drawing.Size(418, 22);
this.txtCode.TabIndex = 3;
//
// txtOutput
//
this.txtOutput.Location = new System.Drawing.Point(12, 170);
this.txtOutput.Multiline = true;
this.txtOutput.Name = "txtOutput";
this.txtOutput.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.txtOutput.Size = new System.Drawing.Size(418, 220);
this.txtOutput.TabIndex = 4;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(189, 17);
this.label1.TabIndex = 5;
this.label1.Text = "Ввод сообщения (A,B,C,#):";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(9, 60);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(277, 17);
this.label2.TabIndex = 6;
this.label2.Text = "Числовой код для декодирования (пример):";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(9, 150);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(92, 17);
this.label3.TabIndex = 7;
this.label3.Text = "Результат / Логи";
//
// Form1
//
this.ClientSize = new System.Drawing.Size(442, 402);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.txtOutput);
this.Controls.Add(this.txtCode);
this.Controls.Add(this.txtInput);
this.Controls.Add(this.btnDecode);
this.Controls.Add(this.btnEncode);
this.Name = "Form1";
this.Text = "Арифметическое кодирование - Lab6";
this.ResumeLayout(false);
this.PerformLayout();
}
}
}

You might also like