private void BtnBubbleSort_Click(object sender, EventArgs e) { var bubble = new BubbleSort <SortedItem>(items); BtnClick(bubble); }