EditForm.Designer.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Windows.Forms;
  2. namespace ZhkhApp
  3. {
  4. partial class EditForm
  5. {
  6. private System.ComponentModel.IContainer components = null;
  7. private Button btnSave, btnCancel;
  8. // Объявление всех полей (ОБЯЗАТЕЛЬНО!)
  9. private TextBox txtNumber, txtArea, txtResidentCount;
  10. private TextBox txtLastName, txtFirstName, txtMiddleName;
  11. private TextBox txtMonth, txtYear, txtPenalty, txtTotalSum;
  12. private TextBox txtUsername, txtPassword;
  13. private TextBox txtAmount;
  14. private ComboBox cbAddress, cbApartment, cbPerson, cbRole;
  15. private ComboBox cbReceipt, cbPaymentMethod;
  16. protected override void Dispose(bool disposing)
  17. {
  18. if (disposing && (components != null))
  19. components.Dispose();
  20. base.Dispose(disposing);
  21. }
  22. private void InitializeComponent()
  23. {
  24. this.btnSave = new Button();
  25. this.btnCancel = new Button();
  26. this.SuspendLayout();
  27. // btnSave
  28. this.btnSave.Text = "Сохранить";
  29. this.btnSave.Location = new System.Drawing.Point(130, 420);
  30. this.btnSave.Size = new System.Drawing.Size(100, 35);
  31. this.btnSave.BackColor = System.Drawing.Color.LightGreen;
  32. this.btnSave.Click += BtnSave_Click;
  33. // btnCancel
  34. this.btnCancel.Text = "Отмена";
  35. this.btnCancel.Location = new System.Drawing.Point(250, 420);
  36. this.btnCancel.Size = new System.Drawing.Size(100, 35);
  37. this.btnCancel.BackColor = System.Drawing.Color.LightCoral;
  38. this.btnCancel.Click += BtnCancel_Click;
  39. // EditForm
  40. this.Text = "Редактирование";
  41. this.Size = new System.Drawing.Size(480, 500);
  42. this.StartPosition = FormStartPosition.CenterParent;
  43. this.BackColor = System.Drawing.Color.White;
  44. this.FormBorderStyle = FormBorderStyle.FixedDialog;
  45. this.MaximizeBox = false;
  46. this.Controls.Add(this.btnSave);
  47. this.Controls.Add(this.btnCancel);
  48. this.ResumeLayout(false);
  49. }
  50. }
  51. }