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
Ejemplo n.º 1
0
        private void factor_btn_Click(object sender, EventArgs e)
        {
            Item_SheetFactor Sheet = new Item_SheetFactor(qty_num.Value,partnum_txt.Text);

            Sheet.ShowDialog();

            qty_num.Value = Sheet.FactoredWeight;

            EngWBDS.Tables["ECOMtl"].Rows[BillDataGrid.CurrentCellAddress.Y]["QtyPer"] = qty_num.Value;

            Sheet.Dispose();
        }