private void Main_FormClosed(object sender, FormClosedEventArgs e) { bool b = ColumnReader.Save(Columns.ToArray()); bool c = AccountReader.Save(Accounts, Application.StartupPath + "/Settings/Accounts.dat"); if (!b || !c) { MessageBox.Show("Failed to save your data."); } }
private void button1_Click(object sender, EventArgs e) { Change = true; AccountReader.Save(Accounts, "Settings/Accounts.dat"); this.Close(); }