private void Click(object sender, MouseButtonEventArgs e) { ElementWindows window = new ElementWindows(elements[filler.ExtractNumber(((TestControl_v2)sender).Name)]); window.Show(); }