コード例 #1
0
        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.");
            }
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Change = true;
     AccountReader.Save(Accounts, "Settings/Accounts.dat");
     this.Close();
 }