private void SerializeButton_Click(object sender, EventArgs e) { if ((File.Exists(FileName))) { File.Delete(FileName); } SerializeerClass.SerializeObject(Data.Employees, FileName); }
private void DeserializeButton_Click(object sender, EventArgs e) { SerializeerClass.Deserialize(Data.Employees, FileName); }