private void button1_Click(object sender, EventArgs e) { Users user = new Users(textBox1.Text, textBox2.Text, textBox3.Text); SerializeWrapper.fileName = "Users.dat"; SerializeWrapper.binarySerialize(user); }
private void button2_Click(object sender, EventArgs e) { Users user = SerializeWrapper.binaryDeserialize(); label7.Text = user.userName; label8.Text = user.email; label9.Text = user.country; }