public Form1() { student_hzw p1 = new student_hzw(); InitializeComponent(); Ph = new Dictionary<string, student_hzw>(); FullData(ph); }
public Form1() { student_hzw p1 = new student_hzw(); InitializeComponent(); Ph = new Dictionary <string, student_hzw>(); FullData(ph); }
private void button1_Click(object sender, EventArgs e) { student_hzw st = new student_hzw(); st.Name_hzw = Name.Text; st.Sex_hzw = Sex.Text; st.PhoneNumber_hzw = Name.Text; st.Job_hzw = Job.Text; st.Adress_hzw = Adress.Text; st.FriendShip = Relationship.Text; f1.Ph.Add(st.Name_hzw, st); f1.FullData(f1.Ph); this.Close(); }
public Form2(Form1 _f1, student_hzw _st1) { InitializeComponent(); f1 = _f1; st1 = _st1; }