SaveHistory() public method

Save the history database to disk.
public SaveHistory ( string path ) : bool
path string
return bool
示例#1
0
        private void button5_Click(object sender, EventArgs e)
        {
            if(MessageBox.Show("Do you really want to remove all task history ?", "SecureDelete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) {
                HistoryManager man = new HistoryManager();

                man.LoadHistory(SecureDeleteLocations.GetScheduleHistoryFile());
                man.Clear();
                man.SaveHistory(SecureDeleteLocations.GetScheduleHistoryFile());
            }
        }