SecureDelete.Schedule.HistoryManager.Clear C# (CSharp) 메소드

Clear() 공개 메소드

public Clear ( ) : void
리턴 void
        public void Clear()
        {
            _categories = new Dictionary<Guid, HistoryCategory>();
        }

Usage Example

예제 #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());
            }
        }