using System.Windows.Forms;

namespace ZhkhApp
{
    partial class EditForm
    {
        private System.ComponentModel.IContainer components = null;
        private Button btnSave, btnCancel;

        // Объявление всех полей (ОБЯЗАТЕЛЬНО!)
        private TextBox txtNumber, txtArea, txtResidentCount;
        private TextBox txtLastName, txtFirstName, txtMiddleName;
        private TextBox txtMonth, txtYear, txtPenalty, txtTotalSum;
        private TextBox txtUsername, txtPassword;
        private TextBox txtAmount;
        private ComboBox cbAddress, cbApartment, cbPerson, cbRole;
        private ComboBox cbReceipt, cbPaymentMethod;

        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
                components.Dispose();
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.btnSave = new Button();
            this.btnCancel = new Button();
            this.SuspendLayout();

            // btnSave
            this.btnSave.Text = "Сохранить";
            this.btnSave.Location = new System.Drawing.Point(130, 420);
            this.btnSave.Size = new System.Drawing.Size(100, 35);
            this.btnSave.BackColor = System.Drawing.Color.LightGreen;
            this.btnSave.Click += BtnSave_Click;

            // btnCancel
            this.btnCancel.Text = "Отмена";
            this.btnCancel.Location = new System.Drawing.Point(250, 420);
            this.btnCancel.Size = new System.Drawing.Size(100, 35);
            this.btnCancel.BackColor = System.Drawing.Color.LightCoral;
            this.btnCancel.Click += BtnCancel_Click;

            // EditForm
            this.Text = "Редактирование";
            this.Size = new System.Drawing.Size(480, 500);
            this.StartPosition = FormStartPosition.CenterParent;
            this.BackColor = System.Drawing.Color.White;
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;

            this.Controls.Add(this.btnSave);
            this.Controls.Add(this.btnCancel);

            this.ResumeLayout(false);
        }
    }
}