Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace MDI
- {
- public partial class Form3 : Form
- {
- public Form3()
- {
- InitializeComponent();
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- public string City
- {
- get { return textBox1.Text; }
- }
- public string Streat
- {
- get { return textBox2.Text; }
- }
- public string NumberHouse
- {
- get { return textBox3.Text; }
- }
- private void label2_Click(object sender, EventArgs e)
- {
- }
- private void button1_Click(object sender, EventArgs e)
- {
- Adress q = new Adress();
- q.City = textBox1.Text;
- q.Streat = textBox2.Text;
- q.NumberHouse = textBox3.Text;
- MyList.Add(q); //!!!!!!!!!!!!!!!!!!!!!!!!
- }
- private void button2_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement