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
文件: Form1.cs 项目: NQTD/TTN-TH248
 private void button1_Click(object sender, EventArgs e)
 {
     frmQuanLySieuThi frm = new frmQuanLySieuThi();
     frm.ShowDialog();
     frm.Close();
     frm.Dispose();
 }
示例#2
0
文件: Form1.cs 项目: nganninh/Ngan
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmQuanLySieuThi frm = new frmQuanLySieuThi();

            frm.ShowDialog();
            frm.Close();
            frm.Dispose();
        }