private void btn_Add_Click(object sender, EventArgs e) { FormView.AddAlgorithm addalg = new FormView.AddAlgorithm(); addalg.ShowDialog(); addalg.Dispose(); lbox_Type.Items.Clear(); FreshLbox("AlgName", "AlgTypeAbl"); }