Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.23 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace MDI
  12. {
  13.     public partial class Form3 : Form
  14.     {
  15.         public Form3()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void label1_Click(object sender, EventArgs e)
  21.         {
  22.  
  23.         }
  24.         public string City
  25.         {
  26.             get { return textBox1.Text; }
  27.         }
  28.         public string Streat
  29.         {
  30.             get { return textBox2.Text; }
  31.         }
  32.         public string NumberHouse
  33.         {
  34.             get { return textBox3.Text; }
  35.         }
  36.         private void label2_Click(object sender, EventArgs e)
  37.         {
  38.  
  39.         }
  40.        
  41.         private void button1_Click(object sender, EventArgs e)
  42.         {
  43.            
  44.             Adress q = new Adress();
  45.             q.City =  textBox1.Text;
  46.             q.Streat = textBox2.Text;
  47.             q.NumberHouse = textBox3.Text;
  48.             MyList.Add(q);  //!!!!!!!!!!!!!!!!!!!!!!!!
  49.         }
  50.  
  51.         private void button2_Click(object sender, EventArgs e)
  52.         {
  53.  
  54.         }
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement