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 DoPointerSearch(string TempAddress)
        {
            Form.FormEnabled = false;
            PointerScanDialog Dialog = new PointerScanDialog(Form, TempAddress, CurrentSelectedProcess);

            Dialog.ShowDialog();
            FoundPointerAddress = Dialog.PointerFound;
            Dialog.Dispose();
            Form.FormEnabled = true;
        }
 private void DoPointerSearch(string TempAddress)
 {
     Form.FormEnabled = false;
     PointerScanDialog Dialog = new PointerScanDialog(Form, TempAddress, CurrentSelectedProcess);
     Dialog.ShowDialog();
     FoundPointerAddress = Dialog.PointerFound;
     Dialog.Dispose();
     Form.FormEnabled = true;
 }