Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
示例#1
0
        private void changeJournalFolderToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form c = new ChangeFolder();

            c.ShowDialog(this);
            c.Dispose();

            checkJournalPath();
            existingEntriesThisMonth(cal.SelectionStart);
            displayEntryFor(cal.SelectionStart);
        }
示例#2
0
        private void changeJournalFolderToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form c = new ChangeFolder();
            c.ShowDialog(this);
            c.Dispose();

            checkJournalPath();
            existingEntriesThisMonth(cal.SelectionStart);
            displayEntryFor(cal.SelectionStart);
        }