public Lab1() { InitializeComponent(); bitmapMain = new Bitmap(drawField.Width, drawField.Height); bitmapSecondary = new Bitmap(drawField.Width, drawField.Height); string path = "D:\\4 сем\\ооп\\1\\graphicEditor\\graphicEditor\\bin\\Debug"; string[] dirs = Directory.GetFiles(path); for (int i = 0; i < dirs.Length; i++) { if (dirs[i].Contains(".dll")) { IResizable myObject = GetObject(dirs[i]); if (myObject != null) { shapes.Add(myObject); shapeComboBox.Items.Add(myObject.GetType().Name); } } } }