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
ファイル: formImage.cs プロジェクト: sladen/openbve
 // show image dialog
 internal static void ShowImageDialog(Image Image)
 {
     formImage Dialog = new formImage();
     Dialog.CurrentImage = Image;
     Dialog.ShowDialog();
     Dialog.Dispose();
 }
コード例 #2
0
        // show image dialog
        internal static void ShowImageDialog(Image Image)
        {
            formImage Dialog = new formImage();

            Dialog.CurrentImage = Image;
            Dialog.ShowDialog();
            Dialog.Dispose();
        }